471,336 Members | 1,272 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,336 software developers and data experts.

PDF email attachment gets corrupted

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!!
Aug 11 '05 #1
1 1849
I forgot to mention that I have used System.Web.Mail.MailMessage to create an
email and an SMTPMail object to send the mail.

"Novice" wrote:
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!!

Aug 11 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.