PHPs mail function doesn't send email to some servers
- by Mamadou
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.