I've been trying to configure phpmailer script to send email after having submitted a form.
However, I keep getting this error message:
Here's part of the php code:
I've tried to find the answer on my own through my web host's forums, however, I'm still scratching my head as it's not sending any email.
$mail = new PHPMailer();
$mail->Mailer = "smtp";
$mail->IsSMTP(); // send via SMTP
$mail->Host = "smtp.myisp.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "myispusername"; // SMTP username
$mail->Password = "myisppassword"; // SMTP password
$mail->From = "firstname.lastname@example.org";
$mail->FromName = "My Name";
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(false); // send as HTML
Any help would be great!