Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: Shan Plourde <ShanPlourde@xxxxxxxxx>
- Date: Wed, 22 Aug 2007 05:09:09 -0000
On Aug 21, 4:06 am, UL-Tomten <tom...@xxxxxxxxx> wrote:
On Aug 21, 2:41 am, Shan Plourde <ShanPlou...@xxxxxxxxx> wrote:
The Chinese characters I tried to show just now are not appearing here
on this newgroup when I post through Google Groups. Anyhow, it doesn't
seem to matter what the Characters are that are used, if they are any
Chinese characters then the issue occurs.
Your sample code works as it should when I run it. Could you try the
following:
1. Instead of using the templateManager, try hard-coding a string with
Chinese characters into your code
2. Send the mail to gmail, and click "options" and then "show
original" and tell us what the "subject" line says (it should be
something along the lines of "=?utf-8?B?....==?=");
Hi UL-Tomten, thanks for following up. Actually I lied! I only tested
this with Outlook 2007 at first. After testing --- and I did try
everything that you suggested to isolate stuff, and the subject did
indeed only contain Chinese characters during a debugging session
where I was using the debugger to change message properties and send
to various email addresses --- I have found the following with emails
with Chinese characters in the subject, body and file attachment name:
1. When the email is sent to Gmail and Yahoo email addresses and
viewed with their web viewers, all Chinese characters show correctly
2. When the email is sent to a Microsoft Exchange Server email address
at my company and viewed in my Outlook 2007 client, the subject and
file attachment name show question marks, but the body shows Chinese
Characters
3. When the email is sent to a Gmail email address and viewed with an
Outlook 2007 configured email client that retrieves Gmail mail using
pop3, all Chinese characters show correctly!
4. When the email is sent to a Microsoft Exchange Server email address
at my company and viewed in my company's Microsoft webmail interface,
the same issue - the question marks - again happens
5. Here's an interesting one - when the email is sent to my wife's
work email, which is also Microsoft Exchange Server, her Outlook 2007
correctly shows all Chinese characters!
6. A colleague from another company, which also uses Microsoft
Exchange Server, received the email successfully with the same issue
that I have
I'm not sure what that means then. To summarize though, it's only my
work email that the issue is happening with. Could it be possible that
perhaps then there's some sort of Exchange Server problem? I am not
really sure right now, but interested to know if you may have any
ideas.
Thanks
Shan
.
- Follow-Ups:
- References:
- .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: Shan Plourde
- Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: UL-Tomten
- Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: Shan Plourde
- Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: Shan Plourde
- Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: Shan Plourde
- Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- From: UL-Tomten
- .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- Prev by Date: Storage location of My.Settings
- Next by Date: RE: Xml serialization, arrays, XmlAnyAttribute
- Previous by thread: Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- Next by thread: Re: .NET 2.0 - Sending Emails - Subject and Attachment Name Encoding Issues
- Index(es):
Relevant Pages
|