cobasystems EMAIL via AutoIt

This forum is for eXpress++ general support.
Message
Author
User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: cobasystems EMAIL via AutoIt

#11 Post by Auge_Ohr »

rdonnay wrote:When I use Chilkat_9_5_0.Mailman ActiveX for smtp I use port 465 for Gmail.
YES, T-Online also have Port 465

Code: Select all

oCdoConf:fields:setproperty("item","http://schemas.microsoft.com/cdo/configuration/smtpserverport",465)
rdonnay wrote: Also, Chilkat has a logical value that must be set to enable SSL:
Is it possible that your CDO control also has such a requirement?
that is this line

Code: Select all

// SSL
oCdoConf:fields:setproperty("item","http://schemas.microsoft.com/cdo/configuration/smtpusessl", 1)
greetings by OHR
Jimmy

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: cobasystems EMAIL via CDO

#12 Post by skiman »

Auge_Ohr wrote:
skiman wrote:I was trying to use the below code, but it doesn't work.
i use it every Day
Hi,

I implemented this CDO mail a few months ago. We have problems with it. In a lot of cases a mail isn't send from the first time. A second try most of the times will succeed.

I can't find a way to detect the cause of this problem. As far as i know, there is no error handling possible? Anyone who has any idea about this?
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: cobasystems EMAIL via AutoIt

#13 Post by Auge_Ohr »

hi,

just can say it is not CDO.

i also have a App where a Function seem not to work 1st Time but when make a Demo it work.
so i just can say test CDO with a Demo and if that do not work than you can upload it so other can confirm it
greetings by OHR
Jimmy

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: cobasystems EMAIL via AutoIt

#14 Post by skiman »

Hi Jimmy,

I will check to create a demo.
Best regards,

Chris.
www.aboservice.be

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: cobasystems EMAIL via AutoIt

#15 Post by unixkd »

Dear all

Pls where can i find the complete documentation for the CDO email object.

Thanks.

Joe

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: cobasystems EMAIL via AutoIt

#16 Post by skiman »

Hi,

I didn't find a complete documentation, I had found different samples on the internet.

Meanwhile I bought the Chilkat Active-X. Mails are working for more than a week without a single problem.
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: cobasystems EMAIL via AutoIt

#17 Post by Auge_Ohr »

unixkd wrote:Pls where can i find the complete documentation for the CDO email object.
// GENERAL DOCUMENTATION
//
// iVars: CDO.ch
//
// CDO.Configuration
// CDO.Configuration http://msdn.microsoft.com/en-us/library ... g.10).aspx
// http://msdn.microsoft.com/en-us/library ... g.10).aspx
// Individual properties description: http://msdn.microsoft.com/en-us/library ... g.10).aspx
// CDO.Message http://msdn.microsoft.com/en-us/library ... g.10).aspx
// CDO error codes http://msdn.microsoft.com/en-us/library ... g.10).aspx
// http://www.cdolive.com/cdo11.htm with decimal values
// Examples http://www.paulsadowski.com/wsh/cdo.htm
//
// Xbase++ field initialization:
// The synthaxy to be used may be one or another:
// As write in MSN documentation:
// objMessage.Configuration.Fields.Item _("http://schemas.microsoft.com/cdo/config ... smtpserver") = "mail.myserver.com"
// In Xbase++:
// 1) oFields:setProperty("Item", "http://schemas.microsoft.com/cdo/config ... /smtperver", "mail.server.com")
// 2) oFields:setProperty("Item", "cdosmtpserver", 'mail.example.com')
//
// FOR CONFIGURATINg NEWS GROUPS
// FieldName in :setProperty()

// "nntpauthenticate"
// http://schemas.microsoft.com/cdo/config ... thenticate
//
// See "smtpauthenticate"

// "postemailaddress"
// http://schemas.microsoft.com/cdo/config ... ailaddress
//
// The user's return email address for posted messages

// "postpassword"
// http://schemas.microsoft.com/cdo/config ... stpassword
//
// The password used with postusername when authenticating
// with an NNTP service if the "nntpauthenticate" field
// is set to cdoBasic (1)

// "postusername"
// http://schemas.microsoft.com/cdo/config ... stusername
//
// The username used with postpassword when authenticating to an NNTP
// service if the nntpauthenticate field is set to cdoBasic (1).
// The name must be the fully qualified domain account name, such
// as (domain)\(username) when authenticating with a service
// participating in an Windows NT domain system.

// "postuserreplyemailaddress"
// http://schemas.microsoft.com/cdo/config ... ailaddress
//
// The reply email address. This value is used when
// constructing the headers for posted messages

// "postusing"
// http://schemas.microsoft.com/cdo/config ... /postusing
//
// Specifies the method used when posting NNTP messages.
// Values (defined in CDO.ch)
// cdoPostUsingPickup := 1 -> Post the message using the local NNTP
// service pickup directory.
// cdoPostUsingPort := 2 -> Post the message using NNTP over the network.
//

// FOR CONFIGURATION SMTP
// FieldName in :setProperty
//
// "cdosendemailaddress"
// http://schemas.microsoft.com/cdo/config ... ailaddress
//
// The user's email address used when connecting to the SMTP service.

// "cdosendpassword"
// http://schemas.microsoft.com/cdo/config ... ndpassword
//
// The password used to authenticate to an SMTP server using basic
// Values (defined in CDO.ch)
// cdoBasic := 1 Basic use clear-text authentication.
// When using this option you must provide the user
// name and password through the fields and
// sendusername sendpassword
// cdoAnonymous := 0 Not authenticate.
// cdoNTLM := 2 The current process security context is used to
// authenticate with the service.

// "cdosendusername"
// http://schemas.microsoft.com/cdo/config ... ndusername
//
// The username for authenticating to an SMTP server using basic

// "cdosenduserreplyemailaddress"
// http://schemas.microsoft.com/cdo/config ... ailaddress
//
// This value is normally set if the From address is not where email
// replies should be sent.

// "cdosendusingmethod"
// http://schemas.microsoft.com/cdo/config ... /sendusing
//
// Specifies the method used to send messages.
// If a local SMTP service is available, this field defaults to
// Values (defined in CDO.ch)
// cdoSendUsingPickup := 1 Send message using the local SMTP
// service pickup directory.
// cdoSendUsingPort := 2 Send the message using the network
// (SMTP over the network).

// "cdosmtpauthenticate"
// http://schemas.microsoft.com/cdo/config ... thenticate
//
// Specifies the authentication mechanism to use when authentication is
// required to send messages to an SMTP service using a TCP/IP network
// socket. If no value is set for this field, anonymous (no authentication)
// is assumed.
//
// This field is used only if the field "cdoSendUsing"
// is set to "cdoSendUsingPort".
//
// These settings mean that messages are to be sent or posted over the network.
// Values (defined in CDO.ch)
// cdoBasic := 1 Basic use clear-text authentication.
// When using this option you must provide the user name
// and password through the fields and sendusername
// sendpassword
//
// cdoAnonymous := 0 Not authenticate.
// cdoNTLM := 2 The current process security context is used to
// authenticate with the service.

// "cdosmtpconnectiontimeout"
// http://schemas.microsoft.com/cdo/config ... iontimeout
//
// Indicates the number of seconds to wait for a valid socket to be established
// with the SMTP service before timing out.
// The default is 30 seconds.
// This field is ignored unless the field CdoConfiguration.cdoSendUsingMethod
// is set to cdoSendUsingPort (2).

// "cdosmtpserver"
// http://schemas.microsoft.com/cdo/config ... smtpserver
//
// This field is used when the field "cdoSendUsing"
// is set to cdoSendUsingPort.

// "cdosmtpserverport"
// http://schemas.microsoft.com/cdo/config ... serverport
//
// The port on which the SMTP service specified by the smtpserver field is
// listening for connections.
// The default and well-known port for an SMTP service is 25.
//
// "cdosmtpusessl"
// http://schemas.microsoft.com/cdo/config ... smtpusessl
//
// Indicates that Secure Sockets Layer (SSL) should be used when sending messages
// using the SMTP protocol over the network.
// This field is only meaningful when the field CdoConfiguration.cdoSendUsingMethod
// is set to CdoSendUsingPort. The default is False

//
//
// CDO.Message
// http://msdn.microsoft.com/en-us/library ... g.10).aspx
// :subject Objeto da mensagem
// :From (reserved in XBase++) The string in the From property represents the full messaging addresses of the
// message author or authors, as shown in the following example:
// "Jane Doe" <example@example.com>, <example@example.com>, example2@example.com
// Commas serve as address separators; however, commas are not parsed as separators when
// they appear in an address that is enclosed in double quotes, such as the following:
// "John Jones, Jr." <example@example.com>, "Jane Doe" <example@example.com>
// :To, :Cc, :Bcc Commas serve as address separators; however, commas are not parsed as separators when
// they appear in an address that is enclosed in double quotes, such as the following:
// 'example@example.com'
// ""John Jones, Jr." <example@example.com>"
// "example@example.com, "John Jones, Jr." <example@example.com>, "Jane Doe" <example@example.com>"
// :ReplyTo destinatário da resposta da mensagem.
// Assume: e-mail constante em :From
// :DSNOptions cdoDSNDefault 0 No delivery status notifications are issued.
// cdoDSNNever 1 No delivery status notifications are issued.
// cdoDSNFailure 2 Returns a delivery status notification if delivery fails.
// cdoDSNSuccess 4 Returns a delivery status notification if delivery succeeds.
// cdoDSNDelay 8 Returns a delivery status notification if delivery is delayed.
// cdoDSNSuccessFailOrDelay 14 Returns a delivery status notification if delivery succeeds,
// fails, or is delayed.
// See in CabDefs.ch cabMAIL_NOTIFY ...
// :KeyWords The keywords of a message can be useful for determining if the message is of
// interest to the reader, or for searching for relevant messages in a collection.
// The string in the Keywords property can represent a single keyword or multiple keywords.
// A keyword string can optionally contain spaces, such as the following:
// "1997 payroll"
// Multiple keywords in the list are separated by commas, as in the following example:
// "operating systems,Windows NT,functions"
//
// AddAttachment(<cFullPathName>) pode-se ter vários métodos
// Other many properties, also to send HTML, see the URL above
//
// 'The line below shows how to send using HTML included directly in your script
// objMessage.HTMLBody = "<h1>This is some sample message html.</h1>"
//
// 'The line below shows how to send a webpage from a remote site
// 'objMessage.CreateMHTMLBody "http://www.paulsadowski.com/wsh/"
//
// 'The line below shows how to send a webpage from a file on your machine
// 'objMessage.CreateMHTMLBody "file://c|/temp/test.htm"
//
// Author: Beling
// Date: 05.12.2012
// Revised:
//
///
greetings by OHR
Jimmy

Post Reply