By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,678 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,678 IT Pros & Developers. It's quick & easy.

eMail - funny characters

P: n/a
I send email using ASP.NET using SMTP like this:

objMailMessage.From = New System.Net.Mail.MailAddress(strYourEmail)

objMailMessage.To.Add(to**@toto.com)

objMailMessage.Subject = "Title"

objMailMessage.Body = "Message"

objMailMessage.IsBodyHtml = False

smtp.Send(objMailMessage)

I get the email and all accents are funny characters.

Suggestion to avoid the funny characters?

txs for answering....


May 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You would typically encode them.

Search on smtp and encode at google.

You can also manually replace the strings
with the proper encoding yourself.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"Ramon" <Ra********@hotmail.com> wrote in message
news:IA****************@weber.videotron.net...
I send email using ASP.NET using SMTP like this:

objMailMessage.From = New System.Net.Mail.MailAddress(strYourEmail)

objMailMessage.To.Add(to**@toto.com)

objMailMessage.Subject = "Title"

objMailMessage.Body = "Message"

objMailMessage.IsBodyHtml = False

smtp.Send(objMailMessage)

I get the email and all accents are funny characters.

Suggestion to avoid the funny characters?

txs for answering....

May 7 '06 #2

P: n/a
Set the BodyEncoding property to some encoding that supports the characters.

Ramon wrote:
I send email using ASP.NET using SMTP like this:

objMailMessage.From = New System.Net.Mail.MailAddress(strYourEmail)

objMailMessage.To.Add(to**@toto.com)

objMailMessage.Subject = "Title"

objMailMessage.Body = "Message"

objMailMessage.IsBodyHtml = False

smtp.Send(objMailMessage)

I get the email and all accents are funny characters.

Suggestion to avoid the funny characters?

txs for answering....

May 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.