TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Manishkumar Chaudhari
1.7k
62
940
Encode Subject in asp.net email
Nov 23 2015 12:33 AM
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.
Reply
Answers (
1
)
Can we change system password using .Net?
Duplicate user are not allowing in gridview in ASP.NET C#