Rank: 198057 based on 0 downloads (last 30 days) and 0 file submitted
photo

Martin

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Martin View all
Updated File Comments Rating
09 Jan 2013 Send email using CDO Send HTML formatted mail using the free Microsoft mail component CDO Author: Aurelien Queffurust

09 Jan 2013 Send email using CDO Send HTML formatted mail using the free Microsoft mail component CDO Author: Aurelien Queffurust

I use a similar approach to send mails via the CDO API, inspired by this submission.

To set CDO SMTP settings, some lines like the following can be added after "mail = h.CreateObject('CDO.Message');"

hCdoConfig = h.CreateObject('CDO.Configuration');
hCdoConfig.Fields.Item('http://schemas.microsoft.com/cdo/configuration/sendusing').set('Value', 2);
hCdoConfig.Fields.Item('http://schemas.microsoft.com/cdo/configuration/smtpserver').set('Value', 'smtp.myserver.com')
hCdoConfig.Fields.Item('http://schemas.microsoft.com/cdo/configuration/smtpserverport').set('Value', 25);
hCdoConfig.Fields.Update;

mail.configuration = hCdoConfig;

More information on CDO settings (e.g. SMTP authorization) can be found in the MSDN library at http://msdn.microsoft.com/en-us/library/ms526318.aspx

Contact us