To all,
I am trying to send an email from my server using the php mail function. However, when I run the script, it get a "Connection refused by aspmx5.googlemail.com".
Below is my PHP code and the error message in the /var/log/maillog file.
Any help will be greatly appreciated.
Ken
Code:
<?php
$message = "Line 1\r\nLine 2\r\nLine 3";
$message = wordwrap($message, 70, "\r\n");
mail('watana@unlv.nevada.edu', 'My Subject', $message);
?>
Code:
Sep 10 16:39:28 shenlab sendmail[14175]: t8ANU4nK014121: to=<watana@unlv.nevada.edu>, ctladdr=<apache@shenlab.sols.unlv.edu> (48/48), delay=00:09:24, xdelay=00:00:00, mailer=esmtp, pri=210398, relay=aspmx5.googlemail.com. [74.125.141.26], dsn=4.0.0, stat=Deferred: Connection refused by aspmx5.googlemail.com.