Mail function giving SMTP error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
IceMetalPunk
Forum Commoner
Posts: 71
Joined: Thu Jul 07, 2005 11:45 am

Mail function giving SMTP error?

Post 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 ;) :)
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post 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.
User avatar
IceMetalPunk
Forum Commoner
Posts: 71
Joined: Thu Jul 07, 2005 11:45 am

Post 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 ;) :)
Post Reply