Hi,
I have a txt file with some text I want to send via mail... The text
contains some words with accents... With my code, I receive the mail,
but letters with accent are missing :-(
What am I doing wrong ?
// Loading text file
private string MyBody(){
TextReader tr = new StreamReader(FilePath);
strBody = tr.ReadToEnd();
tr.Close();
}
//sending message
MailMessage _Mail = new MailMessage();
_Mail.To = m_strMailTo;
_Mail.Subject = "MyTest";
_Mail.From = m_strMailFrom;
_Mail.BodyEncoding = System.Text.Encoding.GetEncoding(1252);
_Mail.BodyFormat = MailFormat.Html;
_Mail.Priority = MailPriority.High;
_Mail.Body = m_MyBody() ;
TIA