Keep HTML css style when sent by PHPMailer

0

I am sending an HTML using PHPMailer and, although in some mail managers it looks good, there are certain mail managers in which the HTML style is not maintained. I have CSS styles as inline, but certain aspects do not seem to apply in some occasions. These are some of the styles that do not apply:

<header class = "header" style=" font-size: 24px;text-align:center; padding-bottom:12px;font-family:Helvetica,Arial,sans-serif;color:#02AAC8;" >Hello!</header> 

<img src="http://www.image.org/resources/default_theme/img/comunes/logo.png" style="float:right;margin-left:10px" width="200" height="40" />

<div class="body-text" style="font-family:Helvetica, Arial, sans-serif;font-size:14px;line-height:20px;text-align:justify;color:#333333;">

Is there any PHPMailer method that allows you to maintain the original style and avoid these changes?

    
asked by user91042 22.06.2018 в 13:40
source

0 answers