OVH Community, votre nouvel espace communautaire.

question mail


Jeromax
12/03/2004, 11h35
rajoute un 5ème argument qui sera
"-fadmin@zepixel.com"

dans la fonction mail ?
mail($recipient, $subject, $message, $headers,"-fadmin@zepixel.com");

L.Boggio
12/03/2004, 09h00
Jeromax écrivait :
Salut
Je viens d'éxpérimenté la fonction mail sur mon 60gp
Il fonctionne, les mails arrivent à destination, sauf que le sender (donc admin@zepixel.com) n'est pas le bon, Dans mon logiciel (lotus notes), j'ai reçu un mail de zepixel@60gp.ovh.net
Alors ça ne me convient que moyennement....

voila le code php:
Code PHP:
$headers"From: [url]www.zepixel.com[/url] \n";
$headers .= "X-Sender: \n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: \n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
mail($recipient$subject$message$headers); 
rajoute un 5ème argument qui sera
"-fadmin@zepixel.com"

grddam
12/03/2004, 08h26
L'ajout de ceci devrait résoudre ton problème :

$headers.="From: ".$envoyeur."\n";
$headers.="Reply-To:".$envoyeur."\n";

où $envoyeur contient ton adresse mail.

Jeromax
11/03/2004, 16h35
Salut
Je viens d'éxpérimenté la fonction mail sur mon 60gp
Il fonctionne, les mails arrivent à destination, sauf que le sender (donc admin@zepixel.com) n'est pas le bon, Dans mon logiciel (lotus notes), j'ai reçu un mail de zepixel@60gp.ovh.net
Alors ça ne me convient que moyennement....

voila le code php:
Code PHP:
$headers"From: www.zepixel.com \n";
$headers .= "X-Sender: \n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: \n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
mail($recipient$subject$message$headers);