treść html którą wysyłam jest poprawnie przekazywana przez smtp.googlemail.com i po odebraniu wiadomość wyświetla się poprawnie,
Teraz jedynie chciałem zmienić smtp.googlemail.com na smtp.office365.com i tu jest problem z poprawnym wyświetleniem wiadomości
Jakie nagłówki powinna zawierać poprawna wiadomość
Tak wygląda poprawnie przesłana wiadomość przez smtp.googlemail.com
a tak wygląda błędnie sformatowania przez smt.office365.com
w aplikacji outlook tak
a kod html wygląda tak
<!DOCTYPE html>
<html lang="pl" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml">
<head><title></title><meta charset="utf-8" /><meta content="width=device-width, initial-scale=1.0" name="viewport" /> <!--[if mso]><xml><o:OfficeDocumentSettings><o:PixelsPerInch>96</o:PixelsPerInch><o:AllowPNG/></o:OfficeDocumentSettings></xml><![endif]--><style>* {box-sizing: border-box;}
th.column {padding: 0}
a[x-apple-data-detectors] {color: inherit !important;text-decoration: inherit !important;}
#MessageViewBody a {color: inherit;text-decoration: none;}
p {line-height: inherit;margin: 0;font-size: 14px;color: #555555;line-height: 1.2;font-family: Arial, Helvetica Neue, Helvetica, sans-serif;text-align: left;}
@media (max-width:520px) {.icons-inner {text-align: center;}
.icons-inner td {margin: 0 auto;}
.row-content {width: 100% !important;}
.image_block img.big {width: auto !important;}
.stack .column {width: 100%;display: block;}}
table {mso-table-lspace: 0;mso-table-rspace: 0;word-break: break-word;}</style></head>
<body style="background-color: #fff; margin: 0; padding: 0;-webkit-text-size-adjust: none; text-size-adjust: none;">
<table border="0" cellpadding="0" cellspacing="0" class="nl-container" role="presentation" style="mso-table-lspace: 0; mso-table-rspace: 0;background-color: #fff;" width="100%"><tbody><tr><td>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="row row-1"role="presentation" style="mso-table-lspace: 0;mso-table-rspace: 0;" width="100%"><tbody><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0"class="row-content stack" role="presentation" style="mso-table-lspace: 0;mso-table-rspace: 0;" width="80%"><tbody><tr><th class="column" style="mso-table-lspace: 0; mso-table-rspace: 0;font-weight: 400; text-align: left; vertical-align: top;" width="100%">
<div style="margin: 20px 0; padding: 40px; border: 1px solid #d7e4e4; box-shadow: 0px 2px 4px rgb(0 0 0 / 8%); border-radius: 24px 0px;background: white; width: 100%;">
<table border="0" cellpadding="0" cellspacing="0"class="image_block" role="presentation" style="mso-table-lspace: 0;mso-table-rspace: 0;" width="100%"><tr><td style="width:100%; padding: 0 0 50px 0;"><div align="center" style="padding: 0; line-height:10px;text-align: left;"><a href="http://localhost:8080/"><img class="big" src="http://localhost:8090/misc/files/email-logo" style="display: block; height: auto; border: 0; width: 205px; height: 55px; max-width: 100%;" width="205" height="55" align="left"alt="XXXX" /></a></div></td></tr></table>
<table border="0" cellpadding="0" cellspacing="0"class="heading_block" role="presentation" style="mso-table-lspace: 0;mso-table-rspace: 0;" width="100%"><tr><td style="width:100%; text-align:left;"><h1 style="margin: 0; color: #555555; font-size: 23px;font-family: Arial, Helvetica Neue, Helvetica, sans-serif; line-height:120%; text-align: left; direction: ltr; font-weight: normal; letter-spacing:normal; margin-top: 0; margin-bottom: 0;">Link do zmiany hasła</h1></td></tr></table>
<table border="0" cellpadding="0" cellspacing="0"class="text_block" role="presentation" width="100%"><tr><td style="padding: 20px 0; text-align: left;"><p>Kliknij <ahref="http://localhost:8080/change-password/b29f0d2bce2ed415d397436ced085452">tutaj</a>,aby przejść do strony, na której będziesz mógłzmienić hasło</p></td></tr></table>
<table border="0" cellpadding="0" cellspacing="0"class="text_block" role="presentation" width="100%"><tr><td style="padding: 50px 0 20px 0; text-align: left; font-size: 11px;">Pozdrawiamy,<br />zespół XXXXX</td></tr></table>
</div>
</th></tr></tbody></table></td></tr></tbody></table>
</td></tr></tbody></table><!-- End --></body>
</html>
