All emails send but

the mail() function

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jan 16, 2014 6:07 am

All emails send but

Postby bobeyuno » Thu Jan 16, 2014 7:01 am

Im building up a PHP application to deal with logins everything works fine apart from sending to one type of email address, works fine, they are both email addresses at the university.

$email = $_POST['email'];
$subject = "new test message";
$message = "successful message";
$from = "**************"; //email removed
$headers = "From:" . $from." \r\n";
$headers .= "Content-type: text/html\r\n";
$headers .= "Return-Path: ". $from ." \r\n";
$headers .= "Return-Receipt-To: ".$from."\r\n ";
$headers .= "Reply-To: ". $from;
mail($email,$subject, $message, $headers, " $from" );

any other infomation you need just ask

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest