Getting 554 error when sending to gmail account!


#1

Hello,

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 testmail@gmail.com: Relay access denied in…

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

Thanks!
Chris


#2

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

<?php mail('my_user_name@gmail.com', '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.