eMail Attachment Difficulties
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngescalate' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Mark Runyon
I posted messages to this effect the last two day on aspngfreeforall and
ngfx-mail and have received no reply from any of the members concerning my
issue. I need to find a solution to this issue and these other lists don't
seem able to help me. I'm having difficulties with the MailEncoding property
concerning email attachments. When I attempt to attach certain .pdf
documents using MailEncoding.Base64 it seems to corrupt the image portions
of the document (text displays correctly). Some of the error messages I was
receiving when trying to open the .pdf document were as follows:

Too few operands
There was an error processing a page. There was a problem reading this
document (114)
Insufficent Data for Image
Illegal operation 'h' inside a text document

Other .pdf documents transmit fine and all other files I've included seem to
work as well. Curiously when I zipped the file and transmitted it via Base64
the errors went away. Unfortunately this isn't a viable solution. I tried
using the MailEncoding.UUEncode to a different result. The .pdf documents
that were being corrupted under Base64 were now transmitting fine, but when
I would send a mail message in HTML-format it would only display the text
portion of the HTML document (seemingly stripping out the HTML tags). Also
when I opened it in my Yahoo account, it seemed to strip off the attachment
and append it to the end of the email document as trash (though it seems to
attach fine across my other email accounts). Does anyone know why these
encodings are behaving like they are? I need to find a way to work around
these issues to get these documents attaching properly and I don't know what
else to try at this point.

Thanks in advance
-Mark

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

Reply to this message...
 
    
Mitch Denny (VIP)
Mark,

I'd be happy to help you diagnose the cause of this
problem and hopefully solve it. Since we are talking
attachments you might like to start by e-mailing me
a copy of the file with the problem.

What I will do is then put it through the ASP.NET
system on my end and see if I can replicate what
you are seeing. If I can I'll then do a diff on
the Base64 output from the runtime classes and
that which ends up being transmitted via the SMTP
servers in process.

I can't think of any scenarios where Base64 encoding
when performed correctly can cause this problem,
however I have seen the odd PDF file with similar
problems particularly the "Too few operands" one.

----------------------------------------
- Mitch Denny
- Click here to reveal e-mail address
- +61 (414) 610-141
-

-----Original Message-----
From: Mark Runyon [mailto:Click here to reveal e-mail address]
Sent: Wednesday, 13 February 2002 01:38
To: aspngescalate
Subject: [aspngescalate] eMail Attachment Difficulties

I posted messages to this effect the last two day on aspngfreeforall and

ngfx-mail and have received no reply from any of the members concerning
my
issue. I need to find a solution to this issue and these other lists
don't
seem able to help me. I'm having difficulties with the MailEncoding
property
concerning email attachments. When I attempt to attach certain .pdf
documents using MailEncoding.Base64 it seems to corrupt the image
portions
of the document (text displays correctly). Some of the error messages I
was
receiving when trying to open the .pdf document were as follows:

Too few operands
There was an error processing a page. There was a problem reading this
document (114)
Insufficent Data for Image
Illegal operation 'h' inside a text document

Other .pdf documents transmit fine and all other files I've included
seem to
work as well. Curiously when I zipped the file and transmitted it via
Base64
the errors went away. Unfortunately this isn't a viable solution. I
tried
using the MailEncoding.UUEncode to a different result. The .pdf
documents
that were being corrupted under Base64 were now transmitting fine, but
when
I would send a mail message in HTML-format it would only display the
text
portion of the HTML document (seemingly stripping out the HTML tags).
Also
when I opened it in my Yahoo account, it seemed to strip off the
attachment
and append it to the end of the email document as trash (though it seems
to
attach fine across my other email accounts). Does anyone know why these
encodings are behaving like they are? I need to find a way to work
around
these issues to get these documents attaching properly and I don't know
what
else to try at this point.

Thanks in advance
-Mark

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

| [aspngescalate] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngescalate.asp = JOIN/QUIT

Reply to this message...
 
 
System.Web.Mail.MailEncoding




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com