phpmailer Error (Could not instantiate mail function)?
Posted: Thu Aug 28, 2008 4:11 pm
Hi there guys.
I used phpmailer class to send mail in php on IIS on windows server
this is my code :
But each time I just see this error : Could not instantiate mail function
How can I solve it ?
Thanks in advance.
I used phpmailer class to send mail in php on IIS on windows server
this is my code :
Code: Select all
require("include/mailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->From = "me@communitymx.com";
$mail->FromName = "My Name";
$mail->AddAddress("mds_soft@yahoo.com");
$mail->Subject = "Test PHPMailer Message";
$mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->Send();
echo $mail -> ErrorInfo;How can I solve it ?
Thanks in advance.