J
Jan Agermose
Im trying to send mail using this code:
MailMessage mail = new MailMessage();
mail.From = "(e-mail address removed)";
mail.Subject = "some subject";
mail.Priority = MailPriority.Normal;
mail.Body = body;
mail.BodyFormat = MailFormat.Text;
mail.To = to;
SmtpMail.SmtpServer = "XXXX";
SmtpMail.Send( mail );
Using the same SmtpServer the result if this is very different depending on
the client computer running the code. If using Danish chars "æøåÆØÅ" that
is. I guess this is due to different locale settings on the client
computers.
But how can I get passed this problem? I tried
mail.BodyEncoding = "iso-8859-1";
(and some other encodings)
But this makes it even worse.... This mail is unreadable on the reciving
end. What setting on the client computer sets the encoding on the mail -
what should I check to find the problem?
Jan Agermose
MailMessage mail = new MailMessage();
mail.From = "(e-mail address removed)";
mail.Subject = "some subject";
mail.Priority = MailPriority.Normal;
mail.Body = body;
mail.BodyFormat = MailFormat.Text;
mail.To = to;
SmtpMail.SmtpServer = "XXXX";
SmtpMail.Send( mail );
Using the same SmtpServer the result if this is very different depending on
the client computer running the code. If using Danish chars "æøåÆØÅ" that
is. I guess this is due to different locale settings on the client
computers.
But how can I get passed this problem? I tried
mail.BodyEncoding = "iso-8859-1";
(and some other encodings)
But this makes it even worse.... This mail is unreadable on the reciving
end. What setting on the client computer sets the encoding on the mail -
what should I check to find the problem?
Jan Agermose