Bonsoir à tous,

J'ai un site web sous Prestashop 1.6.1.12 sur lequel je me suis rendu compte que le rendu des templates email (création de compte, inscription à la newsletter...) n'est pas optimisé pour Outlook version PC. En clair le mail reçu est full width alors que sur tous les autres clients de mail ou webmail, le body est de taille max-width de 650 px et centré au milieu de la page.

Je travaille sous Mac et Outlook 2016 affiche parfaitement le mail mais sur PC avec Outlook 2016 et 2013, l'affichage du body est en pleine largeur. Le code utilise des media queries pour s'adapter aux écrans, sauf et c'est là que la bas blesse Outlook version PC ne lis pas les media queries d'après ce site https://litmus.com/community/discuss...-media-queries

J'enrage contre prestashop de ne pas avoir fait le nécessaire pour Outlook PC.

Voici le code que j'ai à l'heure actuelle :
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<title>Message de {shop_name}</title>
 
 
		<style> @media only screen and (max-width: 300px){ 
                                body {
                                        width:218px !important;
                                        margin:auto !important;
                                }
                                .table {width:195px !important;margin:auto !important;}
                                .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}          
                                span.title{font-size:20px !important;line-height: 23px !important}
                                span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}            
                                td.box p{font-size: 12px !important;font-weight: bold !important;}
                                .table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
                                        display: block !important; 
                                }
                                .table-recap{width: 200px!important;}
                                .table-recap tr td, .conf_body td{text-align:center !important;}        
                                .address{display: block !important;margin-bottom: 10px !important;}
                                .space_address{display: none !important;}       
                        }
        @media only screen and (min-width: 301px) and (max-width: 500px) { 
                                body {width:308px!important;margin:auto!important;}
                                .table {width:285px!important;margin:auto!important;}   
                                .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}    
                                .table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
                                        display: block !important; 
                                }
                                .table-recap{width: 295px !important;}
                                .table-recap tr td, .conf_body td{text-align:center !important;}
                                
                        }
        @media only screen and (min-width: 501px) and (max-width: 768px) {
                                body {width:478px!important;margin:auto!important;}
                                .table {width:450px!important;margin:auto!important;}   
                                .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}                    
                        }
        @media only screen and (max-device-width: 480px) { 
                                body {width:308px!important;margin:auto!important;}
                                .table {width:285px;margin:auto!important;}     
                                .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
                                
                                .table-recap{width: 295px!important;}
                                .table-recap tr td, .conf_body td{text-align:center!important;} 
                                .address{display: block !important;margin-bottom: 10px !important;}
                                .space_address{display: none !important;}       
                        }
</style>
 
	</head>
	<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto" >
<table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5); align:center;">
<tbody>
<tr>
<td class="space" style="width: 20px; padding: 7px 0; vertical-align: top;"><img src="https://www.domaine.com/img/cms/TemplateEmail/bandes-right_1.png" alt="" width="25" height="400" /></td>
<td style="padding: 7px 0;" align="center">
<table class="table" style="width: 100%;" bgcolor="#ffffff">
<tbody>
<tr>
<td class="logo" style="padding: 7px 0;" align="center"><a title="{shop_name}" style="color: #337ff1;" href="{shop_url}"> <img alt="{shop_name}" src="{shop_logo}" /> </a></td>
</tr>
<tr>
<td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #00000; font-family: Open-sans, sans-serif; font-size: small;" size="2" color="#000000" face="Open-sans, sans-serif"><span class="title" style="font-weight: 500; font-size: 28px; text-transform: none; line-height: 33px; color: #000000;"> Bonjour {firstname} {lastname},</span><br /> <span class="subtitle" style="font-weight: 500; font-size: 23px; text-transform: none; line-height: 35px; color: #000000;">Bienvenue dans l'Univers domaine. </span></span></td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0;" width="10"></td>
<td style="padding: 7px 0px; text-align: center;">
<p style="border-bottom: 2px solid #d7b458; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;" data-html-only="1"><span style="color: #000000;">Vos codes d'accès sur {shop_name}</span></p>
<p></p>
<p><span style="color: #000000; font-family: Open-sans,sans-serif; font-size: small;" size="2" color="#555454" face="Open-sans, sans-serif"><span style="font-size: medium;" size="3" color="#666666">Afin d’accéder à votre compte et pour bénéficier de tous vos avantages sur notre e-boutique, conservez bien précieusement vos identifiant et mot de passe : </span></span></p>
<p><span style="color: #555454; font-family: Open-sans, sans-serif; font-size: small;" size="2" color="#555454" face="Open-sans, sans-serif"><span style="color: #777;"><span style="text-decoration: underline; color:#9a6600;">Vos codes d'accès :</span><br /><br /> <span style="color: #000000;"><strong>Adresse e-mail : <a style="color: #337ff1;" href="mailto:{email}"><span style="color: #000000;">{email}</span></a></strong></span><br /><span style="color: #000000;"> <strong>Mot de passe :</strong> {passwd}</span> </span> </span></p>
</td>
<td style="padding: 7px 0;" width="10"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;">
<p><img src="https://www.domaine.com/img/cms/Newsletter/footer_newsletter.jpg" alt="" width="588" height="183" /></p>
</td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;">
<table width="588" border="0">
<tbody>
<tr>
<td align="right"><a href="https://www.domaine.com"><img src="https://www.domaine.com/img/cms/TemplateEmail/site-logo.jpg" width="150" height="150" /></a></td>
<td align="center"><a href="https://www.facebook.com/domaine-121092907918577/"><img src="https://www.domaine.com/img/cms/TemplateEmail/facebook-logo.jpg" width="150" height="150" /></a></td>
<td align="left"><a href="https://www.instagram.com/domaine_officiel/"><img src="https://www.domaine.com/img/cms/TemplateEmail/instagram-logo.jpg" width="150" height="150" /></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
<table class="table" style="width: 100%;">
<tbody>
<tr>
<td style="padding: 7px 0px; text-align: center;" width="10"></td>
<td style="padding: 7px 0px; text-align: center;">
<p style="border-bottom: 2px solid #d7b458; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;"><span style="color: #000000;">Le service domaine :</span></p>
<p><span style="color: #000000;">Profitez des Services Exclusifs d'domaine, sur note site</span><a href="https://www.domaine.com/fr/"> https://www.domaine.com</a></p>
<p><img alt="" src="http://www.domaine.com/img/cms/picto_camion.png" width="40" height="40" /></p>
<p><span style="color: #000000;">Livraison offerte à partir de 49€ d'achats</span></p>
<p><img src="http://www.domaine.com/img/cms/PICTO_CADEAU.png" width="40" height="40" /></p>
<p><span style="color: #000000;">Echantillons Offerts</span></p>
<p><img src="http://www.domaine.com/img/cms/picto_ECHANTILLON_MARRON.png" width="40" height="40" /></p>
<p><span style="color: #000000;">Emballage Gratuit</span></p>
</td>
<td style="padding: 7px 0;" width="10"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;"><img src="https://www.domaine.com/img/cms/Newsletter/desert-footer.jpg" alt="" width="598" height="182" /></td>
</tr>
<tr>
<td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: Open-sans, sans-serif; font-size: small;" size="2" color="#555454" face="Open-sans, sans-serif"> <span><span style="color: #000000;">Vous pouvez dès à présent passer commande sur notre boutique :</span> <a style="color: #337ff1;" href="{shop_url}">{shop_name}</a></span> </span></td>
</tr>
<tr>
<td class="space_footer" style="padding: 0!important;"></td>
</tr>
</tbody>
</table>
</td>
<td class="space" style="width: 20px; padding: 7px 0; vertical-align: top;"><img src="https://www.domaine.com/img/cms/TemplateEmail/bandes-left.png" alt="" width="23" height="400" /></td>
</tr>
</tbody>
</table>
<p></p>
<p></p>
<p></p>
</body>
</html>

Comment puis je faire en sorte de centrer mes tables avec un taille maxi de 650px pour l'ensemble? Vaut il mieux le faire au travers d'un code css ou d'une variable html afin d'éviter de faire sauter le rendu sur les autres clients de mail / webmail?

Dans l'attente de vos conseils,

Merci d'avance