PDF email attachment gets corrupted

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a PDF file that I am trying to send as an attachment through a C#
program. Even though the PDF file can be opened by itself, sometimes the same
file cannot be opened as an attachment. If I try and open the original PDF
file I have no problems.

I tried to change the encoding to Base64 but even that has not helped. There
are still ocassions when I am unable to open the attachment.

Has anybody experienced this problem or do you have any suggestions .

Thanks!!
 
I forgot to mention that I have used System.Web.Mail.MailMessage to create an
email and an SMTPMail object to send the mail.
 
Back
Top