1 pièce(s) jointe(s)
Fonction Mail Petit Problème
Salut je débute un script de Newsletter mais j'ai un petit problème ...
Code:
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
| <?php
if( isset($_POST['mailform']) )
{
$message = htmlspecialchars($_POST['message']);
$email = htmlspecialchars($_POST['email']);
$header="MIME-Version: 1.0\r\n";
$header.='From:"Zorkai.ML"<zorkaiyt@gmail.com>'."\n";
$header.='Content-Type:text/html; charset="uft-8"'."\n";
$header.='Content-Transfer-Encoding: 8bit';
$code .= '
<html>
<body>
<div align="center">
<img src="http://www.primfx.com/mailing/banniere.png"/>
<br />
echo"$message";
<br />
<img src="http://www.primfx.com/mailing/separation.png"/>
</div>
</body>
</html>
';
mail($email, "Zorkai.ML - Newsletter", $code, $header);
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="letter.css">
<link href="https://fonts.googleapis.com/css?family=Poor+Story" rel="stylesheet">
</head>
<body>
<form method="post" action="">
<div align="center">
<p><textarea type="text" placeholder="Votre Message..." name="message" style="text-align: center" /></textarea></p>
<p><input type="text" placeholder="Choissiez l'adresse Mail" name="email" /></p>
<p><input type="submit" value="Envoyer !" name="mailform"/></p>
</div>
</form>
</body>
</html> |
En gros le script marche mais quand j'envoie l'email sa m'envoie ca:
Pièce jointe 385553