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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

error sending mail 3
SmtpMail Error 2
SMTPMail and server reply 2
SmtpMail with content id 2
SmtpMail 8
SMTPMail 4
SMTP sending 1
error while using SmtpMail to send a simple html formatted message 6

Back
Top