1 email 2 recipients

HellBenito Posted messages 59 Status Membre -  
HellBenito Posted messages 59 Status Membre -
Hello,

I'm trying to send an email to 2 recipients, one with a predefined address (mine) and the other retrieved via a form:

as follows:

$email_dest = 'adresse@gmail.com' .',';
$email_dest .= $_SESSION['zone_email1'];

if (@!mail($email_dest, $sujet,$sortie,$entetes)) {
echo("Sending the form failed"); //
exit();
}
else {
echo("Thank you, a confirmation email of your request has been sent to you.");

The problem here is that when taken separately, both $email_dest work, but together as I've indicated, it gives me the error message from the "if"... I don't understand what's wrong, if someone could guide me please...

1 réponse

HellBenito Posted messages 59 Status Membre
 
It seems that it doesn't work for the same address twice... Otherwise, it works if someone needs it ^^.
2