This project is read-only.

smtp email sending encoding problem

Sep 21, 2012 at 10: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? 

Sep 24, 2012 at 3:00 AM

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


Oct 2, 2012 at 7:54 AM


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>

Oct 3, 2012 at 12:41 AM

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.