PHPs mail function doesn't send email to some servers
Posted
by Mamadou
on Stack Overflow
See other posts from Stack Overflow
or by Mamadou
Published on 2010-06-09T08:59:12Z
Indexed on
2010/06/09
9:22 UTC
Read the original article
Hit count: 192
Hello everybody, I have the following code which works on some servers and does not work on others:
$Name = "myname"; //senders name
$email_sender = "[email protected]"; //senders e-mail adress
$recipient = $email; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email_sender . ">\r\n";
$status = mail($recipient, $subject, $mail_body, $header);
print('ENVOI '. $status);
The $status variable is true but I don't see any email.
© Stack Overflow or respective owner