Getting 554 error when sending to gmail account!


I’m trying to send e-mail to a GMail account using the mail() function, but I’m getting this error:

Warning: mail() [function.mail]: SMTP server response: 554 Relay access denied in…

If I change the address to my own domain, it works fine. Is DreamHost blocked from Gmail accounts?


Works fine for me. I just did a simple test with this and it went right into my inbox:

<?php mail('', 'The Subject', 'The Message') ?>

If you try a simple one-liner like that, and it works, then I’d probably take a closer look at your code to see if there’s anything in there that could be throwing something off.

:stuck_out_tongue: Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.