Bonjour,
Pour envoyer un mail à partir d'une animation, j'utilise php et loadVariablesNum, je construis donc mon mail qui est contenu dans la chaine lemail.
Ensuite dans php j'ai :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 loadVariablesNum("./Scripts/commande.php?name=" + this.nomfacturation + "&email=" + this.emailclient + "&feedback=" + this.lemail, 0);
Mon souci :
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 <? //Destination Email ID $to = "truc@bidule.com"; //Name of the Person $namenew = $name; //Email Id of the person $emailnew = $email; //Feedback detail $feedbacknew = $feedback; //Subject line of the email $subject = "mail de bidule.com..."." ".date('l dS \of F Y h:i:s A'); /*************** Email body *******************/ $matter = "Nom : "." "."$namenew"."\n\n". "Email : "." "."$emailnew"."\n\n". "Message : "." ".stripslashes($feedbacknew)."\n\n"; /**********************************************/ mail("$to", "$subject","$matter","From: $emailnew");
Je reçois bien mon mail mais tous les sauts de ligne \n que j'ai inséré dans le corps de mon mail dans flash (lemail) n'apparaissent plus toutes mes phrases sont bout à bout.
Une idée ?
Merci d'avance
Franck
Partager