$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "smtp.gmail.com"; // specify main and backup server
$mail->Port = 465; // specify smtp port
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "myAccount@gmail.com"; // SMTP username
$mail->Password = "myPassword"; // SMTP password
//get mail's data
$to = trim($_POST["mail"]);
$subject = trim($_POST["topic"]);
$body = trim($_POST["body"]);
$from = trim($_POST["from"]) == "" ? "myAccount@gmail.com" : $_POST["from"];
$sender = "myAccount@gmail.com";
With the settings above, after completing the quiz, there are no emails sent (to either the quiz taker or me).
I don't know if it matters, but I've got the quiz and php files on a hostmonster site.
Any help would be appreciated.
