SmtpMail Attachment Error

  • Thread starter Thread starter Jimmy
  • Start date Start date
J

Jimmy

I am trying to send an attachment using SmtpMail. I am
able to send an Excel or text file, but when I try to
send a pdf file, it throws an exception: could not access
CDO.Message object. The file size is about 1.92 MB. I was
wondering what could be the factors that result in such
an exception. I am using C# .Net and Windows XP Pro.

Thanks,

Jimmy
 
Is the 1.92 MB file the largest file you've tried to send as an attachment?
Has anything larger gone through? My gut tells me its some kind of timeout
(or something of the like) issue.
 
Hi Jimmy

Try putting a try catch round your code, Then print Exception.ToString()
With the SMTP exceptions, the message allways says "could not access
'CDO.Message' object", but if you do a Exception.ToString(), it gives you
more detail


Gary
 
"CDO.Message"....

Does this mean SmtpMail uses CDO ? So do i need a 'cdo' provider like
outlook to send email from a c# application ?

Is there a class not using CDO that would provide smtpmail support ?


Regards,
Cybertof.
 
Back
Top