Is your smtp.va.com server a different server ? If so, are you sure it supports open relay smtp. Normally you would need to authenticate to able to send email. If it is the same server try localhost instead.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
I don't think mail() supports authentication. You can use the PHPMailer package. It's easy to use and well documented. You can find it on SourceForge.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
You may need to add:
$mail->SMTPAuth = true;
$mail->Username = "XXX";
$mail->Password = "YYY";
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
$mail->Host = "smtp.gmail.com";
and I think
$mail->Port = 465;
But you'll have to check the manual.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
$mail->SMTPSecure = "ssl";
This stuff can all be found by googling for it....
Can you be more specific about the error, perhaps it is something completely different.
Maybe try this one instead: http://www.klenwell.com/is/PhpGmailMailer
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Turn on all errors and look what's in the error-log.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
It is well documented within the PHP.INI file. All the info your need is there. Just follow the instructions therein.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875