HTML email sent by SMTPclient gets rejected by Office365 entered before body

My program creates an email whose body is made up of only html table. When it is sent outside of my company, the company disclaims responsibility but adds it at the beginning rather than at the end of the letter. Or if I add more html to the body (other than the table) it appears first, followed by a disclaimer, and the table is always the last thing in the letter. Why should this disclaimer be inserted this way?

My email (line only):

<body>
   <p>sometext</p>
   <table>
      <tr>
         <th>header1</th>
         <th>header2</th>
      </tr>
   </table>
</body>

      

How it dispatches in code:

MailAddress mailto = new MailAddress(someemail@something.com);
mail.To.Add(mailto);
mail.From = sender;
mail.Subject = emailSubject;
mail.Body = emailBody;
mail.IsBodyHtml = true;
smtpServer.Send(mail);

      

In Office365 Outlook, the Outlook mail client as it appears is sometext, followed by a company disclaimer (which I haven't added), followed by a table. However, in gmail, it appears as sometext, followed by a table, followed by a disclaimer, which is formatted as if it were part of the first column of the table.

+3


source to share





All Articles