PHPMailer will not send out mail. I get an error with PHPMailer.


Using PHPMailer, I get errors when sending out mail. Any ideas?


If you have code like :



$mail->Host = "localhost";

in your code. Change it to:


The IsSMTP() call tells PHPMailer to send via your local SMTP server. However in most cases this will not work with-out authenticating yourself. You can use PHPMailer to also do an auth but if you are sending to an SMTP server on the local server (ie. “localhost”) – it is much better to do this via sendmail directly. The call to :


tells PHPMailer to do this.