Just to add more details,if I send plain text emails from a web client (chrome or internet explorer) it works, so the issue seems to be in the html format of the message from Office365.Attached the mail body sent from the web in html.I've also edite the classmailer.php to use the new mime encoding but without sucsess.