Bonjour,
J'envoie des mails en php en utilisant phpmailer, le soucis c'est que les images en background ne s'affiche pas dans le mail. (testé sur GMAIL & HOTMAIL)
J'ai lu que sur gmail la propriété CSS background-image ne marche pas, mais je reçois des mails dans lesquels ça marche, je ne comprend donc pas...
Sinon je me doute qu'il doit manquer un truc au niveau du header.
je vous mets ce que j'ai quand je fais afficher l'original sur gmail.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>NewsLetter</title> </head> <body style="font-family: Verdana,Arial;font-size:11px;"> <div style="width:863px;height:126px;background-image:url('http://s235208847.onlinehome.fr/assets/images/admin/news-header.jpg');background-repeat: no-repeat;padding-top:60px;"> <div style="padding-left:252px;font-size:18px;font-weight:bold;padding-top:50px;"> <a href="http://xxxxxx.xxx/html/index.php?pg=article&id=460">Bilan et perspectives Projet S n gal</a> </div></div> </body> </html>
Partager