Page 1 of 1

Mail function giving SMTP error?

Posted: Fri Apr 07, 2006 8:52 pm
by IceMetalPunk
I'm using http://www.ripway.com as my host for PHP files. I used this code:

Code: Select all

<?php
mail("SOMEONE@comcast.net","My Subject","My Body");
?>
(Of course, I'm using a real e-mail address in the real code).

However, I keep getting the error:
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for SOMEONE@comcast.net in \\192.168.1.16\webfiles\files\2005-12\568307\t.php on line 2
(The e-mail is putting out the actual e-mail I used to send it, not SOMEONE@comcast.net)

Does anyone know what's going on here?

-IMP ;) :)

Posted: Sat Apr 08, 2006 5:51 am
by Buddha443556
Your host (ripway.com) is not allowing you to send the email. When ever you send mail out of the SMTP server's domain (comcast is no doubt outside ripway's domain) this is considered relaying.

Your free host probably doesn't want you sending out email.

Posted: Sat Apr 08, 2006 3:14 pm
by IceMetalPunk
Oh... great... thanks...

Looks like I'll need to find another way to get GameMaker to e-mail an error log to the administrator... well, thanks anyway.

-IMP ;) :)