I am trying to send an e-mail, but my e-mail host requires authentication (where the username is the e-mail full email address) in order to do so. Can anyone help me figure this one out?
What I have so far:
ini_set('SMTP','mail.example.com');
$email="user@example.com";
$subject="Appointment Reminder";
$headers='From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$message.="Just a reminder that you have an appiontment on ".$values["Appt_Date"]."\r\n";
$message.="at ".$values["Appt_Hour"]."\r\n";
mail($headers, $email, $subject, $message);