Hi,
i have email service which is send to email to all users
some of the user getting below in the subject instead of correct subject
Subject: =?utf-8?B?VGhlIEZyb250IFBhZ2U6IFN0cmF0ZWd5OyBVdGlsaXRpZXM7IEJQQ0wgKEJVWSk7IEhQQ0wgKEJVWSk7IEdTSyBDb25zdW1lciAoQUREKTsgT2lsIEluZGlhIChCVVkpOyBIYXZlbGxzIEluZGlhIChCVVkpOyBCZXJnZXIgUGFpbnRzIChCVVkpOyBQYWdlIEluZHVzdHJpZXMgKFJFRFVDRSk7IFRhdGEgQ2hlbWljYWxzI
have used below code line in the email.
mailObj.SubjectEncoding = System.Text.Encoding.UTF8;
mailObj.BodyEncoding = Encoding.GetEncoding("utf-8");
mailObj.SubjectEncoding = Encoding.GetEncoding("utf-8");
Pls do the needful.
Encode Subject in asp.net email
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Nishant MittalRank #692 · 3.5K reputationPosted Nov 22, 2015, 7:40 PM EST