Mail php function does'nt send the email

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:02 UTC
Read the original article Hit count: 159

Filed under:
|

Hello everybody, I have the following code wich work on some server and does not work in an other:

$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 dont see any email.

© Stack Overflow or respective owner

Related posts about php

Related posts about mail