I want to send myself a message to work out how to use mail(). When I use the script below nothing happens.
//create content for email
$email = "me@myemailaddress.com";
$subject = "test successful";
$message = "test worked, yippee";
$header = "From: [email]webmaster@website.org.uk[/email]\n";
//send email
mail($email, $subject, $message, $header);
phpinfo() gives me this information:
sendmail_from me@localhost.com sendmail_path /usr/sbin/sendmail -t -i
short_open_tag On
SMTP localhost