hi can some please help me urgently ive made mwethod ocf creating a mail and sending it it arabic it works when it is sent to a outlook client but when its sent to hotmail its mumble jumble
any ideas my code is below
Response.ContentEncoding =Encoding.GetEncoding("Windows-1256");
string encodedString = Encoding.GetEncoding("Windows-1256").GetString(Encoding.GetEncoding("Windows-1256").GetBytes(txtEmailBody.Value));
msg.Server = System.Configuration.ConfigurationSettings.AppSettings["ServerValue"];
msg.FromAddress = "bbb@bbb.com";
msg.AddTo(TO.Text);
msg.Subject = "subbject";
msg.Body = Server.HtmlEncode(encodedString);
msg.ContentTransferEncoding = MailEncoding.QuotedPrintable;
msg.CharSetHeader ="Windows-1256";
msg.CharSet = "Windows-1256";
msg.send();
any ideas my code is below
Response.ContentEncoding =Encoding.GetEncoding("Windows-1256");
string encodedString = Encoding.GetEncoding("Windows-1256").GetString(Encoding.GetEncoding("Windows-1256").GetBytes(txtEmailBody.Value));
msg.Server = System.Configuration.ConfigurationSettings.AppSettings["ServerValue"];
msg.FromAddress = "bbb@bbb.com";
msg.AddTo(TO.Text);
msg.Subject = "subbject";
msg.Body = Server.HtmlEncode(encodedString);
msg.ContentTransferEncoding = MailEncoding.QuotedPrintable;
msg.CharSetHeader ="Windows-1256";
msg.CharSet = "Windows-1256";
msg.send();