Search Comments and Ratings

go

   
Date File Comment by Comment Rating
09 Jan 2013 Send email using CDO Send HTML formatted mail using the free Microsoft mail component CDO Author: Aurelien Queffurust Martin

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

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

17 Oct 2012 Send email using CDO Send HTML formatted mail using the free Microsoft mail component CDO Author: Aurelien Queffurust Aurelien Queffurust

Still works under MATLAB 8.0
This utility is used in my company to monitor which software is most used.

01 Nov 2011 Send email using CDO Send HTML formatted mail using the free Microsoft mail component CDO Author: Aurelien Queffurust Jiong

Hi Aurelien,
Thank you for sharing. I tried your code on Matlab 2010b with WinXP and Outlook 2007. The mail email was not sent. Here is the error msg:
"
The email has not been sent:
Invoke Error, Dispatch Exception:
Source: CDO.Message.1
Description: The "SendingUing" configuration value is invalid."

Would you mind giving any suggestion on this. I really want a way to send html email through Matlab without manually allowing in Outlook.

Thanks a lot!

Jiong

01 Nov 2011 Send email using CDO Send HTML formatted mail using the free Microsoft mail component CDO Author: Aurelien Queffurust Jiong

Contact us