Ok, so now here is what's happening. The email "sends," but when I check my account, nothing is there.
Code:
<?php
function notify_user($email){
ini_set('smtp_port',25);
ini_set('SMTP','www.mysite.com');
ini_set('sendmail_from','admin@mysite.com');
$to = $email;
$subject = 'www.mysite.com Application';
$message = 'Your Application Was Accepted!';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Admin <admin@mysite.com>' . "\r\n";
// Mail it
echo mail($to, $subject, $message, $headers);
}
notify_user('me@hotmail.com');
?>
Bookmarks