- phpversion: documentation ( source)
- mail: documentation ( source)
<?php
$to = "ericnmk80@gmail.com";
$subject = "Test mail";
$message = "Hello. This is a simple email message.";
$from = "info@blastthem.com";
$headers = 'From: eric@blastthem.com' . "\r\n" .
'Reply-To: info@blastthem.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion() . "\n";
//ini_set ( "SMTP", "mail.etamogatasi.net" );
$ret = mail($to,$subject,$message,$headers);
if ( $ret == '' )
{
echo "Failed." . $ret;
}
else
{
echo "Mail Sent." . $ret;
}
?>