To the master gurus at AlterVista,
I am fairly new to web programming, but I've been working on a college fooball pool website where a group of my friends submit our predictions and see who is the best "SWAMI".
I've tried the following code, but CANNOT get any emails. Can you please check the php settings or any other configurations to see what I am doing wrong? Thaks.
PHP Code:
$headers = "Return-path: <[I]***myemail***[/I]@gmail.com>\n";
$headers .= "Reply-to: <[I]***myemail***[/I]@gmail.com>"."\n";
$headers .= "Content-Type: text/html; charset=windows-1252\n";
$headers .= "Content-Transfer-Encoding: 7bit\n";
$headers .= "From: <[I]***myemail***[/I]@gmail.com>\n";
$headers .= "X-Priority: 3\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Organization: SWAMI Website\r\n";
$headers .= "\n\n";
$to = 'riojas15@gmail.com';
$subject = $name . "'s CFA Bowl Entry";
$contents = $picks . "\t" . $person;
if(mail($to, $subject, $contents, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}