Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using SMTP Mail to send report as an e-mail...

Status
Not open for further replies.

peter37

Programmer
Jan 20, 2006
10
CA
Hi everybody!
I am trying to exercise possibility of e-mailing crystal report ... So i am trying to use SMTP Mail class...
here is the code from MSDN:
string from = "from@microsoft.com";
string to = "to@microsoft.com";
string subject = "UtilMailMessage001";
string body = &quot;<html><body>UtilMailMessage001 - s</body></html>&quot;;
SmtpMail.Send (from, to, subject, body);

In my case I’ll try to put report as a &quot;body&quot;...
Getting error 'Could not access CDO.message'

Any ideas why? maybe there is a better way of sending report to the mail ?

Please help !!! Going circles...

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top