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 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
| Content-Type: multipart/related; boundary="-----=b5ac5d300e2bc24fa91d717402875163"
Je vous informe que ceci est un message au format MIME 1.0 multipart/mixed.
-------=b5ac5d300e2bc24fa91d717402875163
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding:8bit
<html><body>
<table width="1090`">
<tr>
<td width="1082" height="769">
<table width="1097" height="771" background="cid:image2">
<tr>
<td width="522" height="394"> </td>
<td width="563" height="394"> </td>
</tr>
<tr>
<td width="522" height="26"> </td>
<td width="563" height="26"> <b>ddha@lc1</b></td>
</tr>
<tr>
<td width="522" height="58"> </td>
<td width="563" height="58"><b>7874</b></td>
</tr>
<tr>
<td width="522" height="21"> </td>
<td width="563" height="21" valign="top"><b>2008-02-25</b></td>
</tr>
<tr>
<td width="522" height="258"> </td>
<td width="563" height="258"> </td>
</tr>
</table>
</body></html>
-------=b5ac5d300e2bc24fa91d717402875163
Content-Type: application/octet-stream; name="fond2_1.jpg"
Content-Trans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ZaSpRovBJl/BgMPASY6yEn4vvJ/NzLba8yWpuSzbNOVLcS568c8BhYAKRsNvgR6Efs
1lGbTqiWjm54JIZWikGzD4/Aj4EfkdejGSkqoq1Q16sBoBoBoBoBoBoDOGeWFw8TlGHjcHbcfgfx
GidAW4s2p6HG8pSCUgCVdg7AHc7D022Hr/XrRtpJvJlVi8CctvD0KfJZEigXztv8xJH4H5ixA1pB
p5FXhmV2Mz8eXsWazRBIgm8ak7lkJKty+HxGufVpxpJOhaDRAynVdgZcf6D1gJ3P/isT/XqtnV7p
d5LhwKSrPax15JghSaI7lHGxIPgggj0YHXdFpqqZmd/dzOPp43+ISyj6cgGPbyXJG6qo+JO3+fWi
TbogzynLZa1lLr27BO7EhE33CJuSFHgeBvrpSSVEUzLbrcX8Ur2cddttDSrR+/ExIKxyAhQfPnYh
/wBO4/n1VpLELgTur4vIPeY463Fyg8yluYBRiQBxIDMGC7/l+3WfyfmYbieah1N6iblw070Aeko9
xCCwDMPA3II9N/TXE7MrU22aVTRMhq1asIirxJFGPARAAP2nb1Osr9x0xeJMUfdcJcaA0WqVW3H7
dmJZV+AYbkfmD6g6tGbi6phoo7nUIwxkx8vtNt/dSbsh/Ll5YD+fXVDVtqklUo4FVYx92vuZ4GQD
bdtt18/6w3Gtlci8mKEfViBoBoBoBoCxw0rxWtiD7coIJ2O248g/nrn1CTj0otHBl5NlqdNAQpmm
Ox4fp2BG+538/wAmstPbjRuSq93D7erLpJk3uK2XP3ppQQQgJA8AE7b+m53GtXaUpc0m3IitFRHV
2LVetGZbEqQxggF5GCqCfAG5IGvRxbMyprdqpWriQUkaVGJBsEFU3APhQdmb0/LVLlx28V8SCVSz
eWR/1Hf8vh/Nrzr2pnc+J4eBoopZF9S/3WL/AGB/Vr9M8r/tbf5Uebd+J9Zv16BmNANANANANANA
NANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANA
NANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANANA
NANANANANANARb0ipB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DM2qVR61PGZB6NaZ33NmIQxzJYClV4LIs26jz
8ux387ADsNAVVjtXV62YhwljL0oczPt7GNksRJZfkCRwhLBzuB8BoCi6l9wf8Q3JYDBUpiK3k6hg
ku8rb/wyyK/uxV/ZXlG3q55jgSo+bfcAWVT7gdDuGcVOyYqyasUs9oRXa7+1FAAZpJOLnisYO7Mf[/COLOR]
####################################################
Je ne comprend plus rien puisque sous WINDOWS tout est OK tandis que sous LINUX le message n'affiche pas comme je le veux.
Voici le code PHP qui envoi mon mail :
####################################################
[COLOR="Red"]<?
//----------------------------------
// Construction de l'entête
//----------------------------------
$delimiteur = "-----=".md5(uniqid(rand()));
$entete = "MIME-Version: 1.0\r\n";
$entete .= "Content-Type: multipart/related; boundary=\"$delimiteur\"\r\n";
$entete .= "\r\n";
//--------------------------------------------------
// Construction du message proprement dit
//--------------------------------------------------
$msg = "Je vous informe que ceci est un message au format MIME 1.0 multipart/mixed.\r\n";
//---------------------------------
// 1ère partie du message
// Le code HTML
//---------------------------------
$msg .= "--$delimiteur\r\n";
$msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$msg .= "Content-Transfer-Encoding:8bit\r\n";
$msg .= "\r\n";
$msg .= "<html><body>";
$msg .= "
<table width=\"1090`\">
<tr>
<td width=\"1082\" height=\"769\">
<table width=\"1097\" height=\"771\" background=\"cid:image2\">
<tr>
<td width=\"522\" height=\"394\"> </td>
<td width=\"563\" height=\"394\"> </td>
</tr>
<tr>
<td width=\"522\" height=\"26\"> </td>
<td width=\"563\" height=\"26\"> <b>$chaine1</b></td>
</tr>
<tr>
<td width=\"522\" height=\"58\"> </td>
<td width=\"563\" height=\"58\"><b>$randomcartelc11</b></td>
</tr>
<tr>
<td width=\"522\" height=\"21\"> </td>
<td width=\"563\" height=\"21\" valign=\"top\"><b>$datexpire</b></td>
</tr>
<tr>
<td width=\"522\" height=\"258\"> </td>
<td width=\"563\" height=\"258\"> </td>
</tr>
</table>
</td>
</tr>
</body></html>\r\n";
$msg .= "\r\n";
//---------------------------------
// 2nde partie du message
// Le 1er fichier (inline)
//---------------------------------
$fichier = "fond2_1.jpg";
$fp = fopen($fichier, "rb");
$fichierattache = fread($fp, filesize($fichier));
fclose($fp);
$fichierattache = chunk_split(base64_encode($fichierattache));
$msg .= "--$delimiteur\r\n";
$msg .= "Content-Type: application/octet-stream; name=\"$fichier\"\r\n";
$msg .= "Content-Transfer-Encoding: base64\r\n";
$msg .= "Content-ID: <image2>\r\n";
$msg .= "\r\n";
$msg .= $fichierattache . "\r\n";
$msg .= "\r\n\r\n";
$destinataire = "angejudicael@africaonline.co.ci";
$expediteur = "didier@africaonline.co.ci";
$reponse = $expediteur;
mail($destinataire,
"Génération des cartes LC1",
$msg,
"Reply-to: $reponse\r\nFrom: $expediteur\r\n".$entete);
?> |
Partager