smtp email sending encoding problem

Sep 21, 2012 at 9:36 AM

Hi Everyone,

I have a problem with encoding. I would like to send an email with utf-8 encoding but the received email contains '?' signs.
I tried the followings:
mail.ContentEncoding = System.Text.Encoding.UTF8;
mail.HeaderEncoding = System.Text.Encoding.UTF8;
client.ResponseEncoding = System.Text.Encoding.UTF8;

Can anybody help me? 

Coordinator
Sep 24, 2012 at 2:00 AM

Hi.
I'll investigate your problem.
Please show me the message source that you received.

regards.

Oct 2, 2012 at 6:54 AM

Hi,

The message in the received email is not encoded, it contains ? marks. When I debug my sending source code the string looks correct.

...
Subject: Produktmodul Status
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
MIME-Version: 1.0
To: xxx
Content-Type: text/html; charset=utf-8
Reply-To: yyy
In-Reply-To: zzz

<html><body><p>test message</p><p>??????????????????</p><p>?</p><p>?</p></body></html>

Coordinator
Oct 2, 2012 at 11:41 PM

Sometimes mail client could not parse encoded mail text correctly.
For example, iPhone could not parse mail that is charset=iso-2022-jp and Content-Transfer-Encoding=Base64.

Please ensure that other mail client (like GMail, LiveMail or other...) and reproduct decoding problem.
If it is a client specific problem, please try other encoding pattern.