mail() recipient won't receive the email

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Locked
esandra
Forum Newbie
Posts: 24
Joined: Sun Aug 30, 2009 11:11 pm

mail() recipient won't receive the email

Post by esandra »

Hi this script doesn't return any errors but it also doesn't send the message. What seems to be the problem with this?
-----------------------------------------------------------------

Code: Select all

 
<?
$email = "esandrkwn@gmail.com";
$subject = "this is a test....";
$message = "If this even gets sent...";
$from = "amarie_kwn@yahoo.com";
 
$headers = "From: ".$from;
 
mail($email,$subject,$message,$headers)
?>
 
-----------------------------------------------------------------
Any help is very much appreciated.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: mail() recipient won't receive the email

Post by Benjamin »

Do not double post.

:arrow: Locked
Locked