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.PHP Code:require("class.phpmailer.php");
$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 = "myemail@mydomain.com";
$mail->FromName = "My Name";
$mail->AddAddress($Email);
$mail->AddCC("myemail@mydomain.com");
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(false); // send as HTML
Any help would be great!
Thanks!





Bookmarks