Bonjour,

Mon client me demande de lui créer un fichier html pour un modèle de template de newsletter.
Il utilise le logiciel Sendblaster pro pour envoyer ses emails.

Je lui créée un modèle avec Smultron (je suis sur Mac) en UTF 8.
Mais son test montre que les caractères spéciaux s’affichent mal et en bas du mail, du code s’affiche :
extrait du code :
Code : 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
" Content-Transfer-Encoding: quoted-printable =0A =0A =0A =0A =0A =0A =0A =0A =0A =0A =0A 
=0A=0A =0A =0A 
=0A 
=0A 
=0A 
=0A=0A =0A =0A 
=0A=0A =0A 
=0A 
=0A =0A 
=0A 
=0A = 
=0A =0A 
=0A 
=0A = 
=0A=0A =0A 
=0A 
=0A =0A 
=0A 
=0A = 
=0A 
=0A
Nous faisons plusieurs essais et finalement, la meilleure compatibilité s’avère quand je mets le charset en iso8859-1 (lui-même fait le choix de ce charset dans son logiciel au moment de l’envoi).

Les caractères spéciaux sont alors corrigés, mais il reste une ligne de code qui demeure à la fin du mail :
" Content-Transfer-Encoding: quoted-printable =0A =0A =0A =0A =0A =0A =0A =0A
Si j’ai bien compris, «=0A» correspond à un retour. Je ne vois pas où peut être le problème.
Pour correspondre à un autre template issu de Sendblaster que je me suis procurée, je n’ai pas mis de doctype en tête du mail, ni de balise <html>.
D’autre part, les quelques images du mail sont présentes sur un serveur distant et c’est leur URL que j’ai mis en dur dans le code du template.

Quelqu’un aurait-il une idée de comment me débarrasser de cette ligne indésirable ?

Merci à l'avance pour vos réponses.

Je vous mets ici le début du code html :
Code : 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
	<head>
		<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS -->
		<title>Invitation séminaire</title>
		<style type="text/css">
                        /* RESET STYLES */
                        html { background-color:#E1E1E1; margin:0; padding:0; }
                        body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:"Trebuchet MS",Helvetica, Arial, "Lucida Grande", sans-serif;}
                        table{border-collapse:collapse;}
                        table[id=bodyTable] {width:100%!important;margin:auto;max-width:600px!important;color:#7A7A7A;font-weight:normal;}
                        img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;}
                        a {text-decoration:none !important;}
                        h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;}
                        /* CLIENT-SPECIFIC STYLES */
                        .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */
                        .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */
                        table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */
                        #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */
                        img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */
                        body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */
                        .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */
                        /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */
                        /* ========== Page Styles ========== */
                        h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;}
                        h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;}
                        h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;}
                        h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;}
                        .flexibleImage{height:auto;}
                        .linkRemoveBorder{border-bottom:0 !important;}
                        table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;}
                        body, #bodyTable{background-color:#EFF0F0;}
                        #emailHeader{background-color:#EFF0F0;}
                        #emailBody{background-color:#FFFFFF;}
                        #emailFooter{background-color:#E1E1E1;}
                        .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;}
                        .emailButton{background-color:#205478; border-collapse:separate;}
                        .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;}
                        .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;}
                        .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;}
                        .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;}
                        .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;}
                        .imageContentText {margin-top: 10px;line-height:0;}
                        .imageContentText a {line-height:0;}
                        #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */
                        /*FRAMEWORK HACKS & OVERRIDES */
                        span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */
                        span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;}
                        span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;}
                        /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled.
                        Inspired by Campaign Monitor's article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/.
                        */
                        .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;}
                        .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;}
                        /* MOBILE STYLES */
                        @media only screen and (max-width: 480px){
                                h1[id="tete"]{font-size:20px;}
                                /*////// CLIENT-SPECIFIC STYLES //////*/
                                body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */
                                /* FRAMEWORK STYLES */
                                /*
                                CSS selectors are written in attribute
                                selector format to prevent Yahoo Mail
                                from rendering media query styles on
                                desktop.
                                */
                                /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/
                                table[id="emailHeader"],
                                table[id="emailBody"],
                                table[id="emailFooter"],
                                table[class="flexibleContainer"],
                                td[class="flexibleContainerCell"] {width:100% !important;}
                                td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;}
                                /*
                                The following style rule makes any
                                image classed with 'flexibleImage'
                                fluid when the query activates.
                                Make sure you add an inline max-width
                                to those images to prevent them
                                from blowing out.
                                */
                                td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; }
                                img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;}
                                img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;}
                                /*
                                Create top space for every second element in a block
                                */
                                table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;}
                                /*
                                Make buttons in the email span the
                                full width of their container, allowing
                                for left- or right-handed ease of use.
                                */
                                table[class="emailButton"]{width:100% !important;}
                                td[class="buttonContent"]{padding:0 !important;}
                                td[class="buttonContent"] a{padding:15px !important;}
                                img[id="deployez"]{width:120%;}
                                img[id="logo"]{margin-left:90px;}
                                span[id="adresse"]{display:block;width:250px;}
                                a[id="bouton"]{display:block;text-align:center;margin-left:40px;}
                        }
                        /*  CONDITIONS FOR ANDROID DEVICES ONLY
                        *   http://developer.android.com/guide/webapps/targeting.html
                        *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ;
                        =====================================================*/
                        @media only screen and (-webkit-device-pixel-ratio:.75){
                                /* Put CSS for low density (ldpi) Android layouts in here */
                        }
                        @media only screen and (-webkit-device-pixel-ratio:1){
                                /* Put CSS for medium density (mdpi) Android layouts in here */
                        }
                        @media only screen and (-webkit-device-pixel-ratio:1.5){
                                /* Put CSS for high density (hdpi) Android layouts in here */
                        }
                        /* end Android targeting */
                        /* CONDITIONS FOR IOS DEVICES ONLY
                        =====================================================*/
                        @media only screen and (min-device-width : 320px) and (max-device-width:568px) {
                        }
                        /* end IOS targeting */
                </style>
		<!--
			Outlook Conditional CSS
			These two style blocks target Outlook 2007 & 2010 specifically, forcing
			columns into a single vertical stack as on mobile clients. This is
			primarily done to avoid the 'page break bug' and is optional.
			More information here:
			http://templates.mailchimp.com/development/css/outlook-conditional-css
		-->
		<!--[if mso 12]>
			<style type="text/css">
				.flexibleContainer{display:block !important; width:100% !important;}
			</style>
		<![endif]-->
		<!--[if mso 14]>
			<style type="text/css">
				.flexibleContainer{display:block !important; width:100% !important;}
			</style>
		<![endif]-->
	</head>
	<body bgcolor="#EFF0F0" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
 
		<!-- CENTER THE EMAIL // -->
		<!--
		1.  The center tag should normally put all the
			content in the middle of the email page.
			I added "table-layout: fixed;" style to force
			yahoomail which by default put the content left.
		2.  For hotmail and yahoomail, the contents of
			the email starts from this center, so we try to
			apply necessary styling e.g. background-color.
		-->
		<center style="background-color:#EFF0F0;">
			<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;">
				<tr>
					<td align="center" valign="top" id="bodyCell">
 
						<!-- EMAIL HEADER // -->
						<!--
							The table "emailBody" is the email's container.
							Its width can be set to 100% for a color band
							that spans the width of the page.
						-->
						<table bgcolor="#EFF0F0" border="0" cellpadding="0" cellspacing="0" width="600" id="emailHeader">
 
							<!-- HEADER ROW // -->
							<tr>
								<td align="center" valign="top">
									<!-- CENTERING TABLE // -->
									<table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tr>
											<td align="center" valign="top">
												<!-- FLEXIBLE CONTAINER // -->
												<table border="0" cellpadding="10" cellspacing="0" width="600" class="flexibleContainer">
													<tr>
														<td valign="top" width="600" class="flexibleContainerCell">
 
															<!-- CONTENT TABLE // -->
															<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
																<tr>
																	<!--
																		The "invisibleIntroduction" is the text used for short preview
																		of the email before the user opens it (50 characters max). Sometimes,
																		you do not want to show this message depending on your design but this
																		text is highly recommended.
																		You do not have to worry if it is hidden, the next <td> will automatically
																		center and apply to the width 100% and also shrink to 50% if the first <td>
																		is visible.
																	-->
																	<td align="left" valign="middle" id="invisibleIntroduction" class="flexibleContainerBox" style="display:none !important; mso-hide:all;">
																		<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:100%;">
																			<tr>
																				<td align="left" class="textContent">
																					<!--<div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;">
																						Invitation Séminaire Atakama Technologies.
																					</div>-->
																				</td>
																			</tr>
																		</table>
																	</td>
																	<td align="center" valign="middle" class="flexibleContainerBox">
																		<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:100%;">
																			<tr>
																				<td align="left" class="textContent">
																					<!-- CONTENT // -->