We are using following code to upload attachment to Email object and send email..
Email objEmail = new Email();
objEmail.Subject = SubjectFromDB;
objEmail.SetHtmlBody("<html><body>" + Final_Body + "</body></html>");
objEmail.AddTo("", s);
objEmail.AddCC("", s);
objEmail.AddBcc("", s);
objEmail.AddHeaderField("X-Priority", "1");
objEmail.AddFileAttachment(FilePath_Physical);
In some files we are getting ??? at the beginning of the file it it is XML. And some characters like ø are converted to ?? once receiver of the email receive the email.
For example: Original file before it is attached:
<?xml version="1.0" encoding="utf-8"?>
.
.
What receiver receives
???<?xml version="1.0" encoding="utf-8"?>