eMail - funny characters

R

Ramon

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

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

objMailMessage.To.Add([email protected])

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....
 
R

Robbe Morris [C# MVP]

You would typically encode them.

Search on smtp and encode at google.

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

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Set the BodyEncoding property to some encoding that supports the characters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top