Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Relay error
Google
Post new topic Reply to topic
Author Message
clapp528
 
 


Joined: 16 Jul 2004
Posts: 19

PostPosted: Mon Nov 06, 2006 1:39 pm Reply with quoteBack to top

When trying to use the PHP mail() function, I get the following error:

*Warning*: mail() [function.mail
<http://www.yourdomain.com/function.mail>]: SMTP server response:
550 5.7.1 Unable to relay

Can you please help me with this? Thanks!
View user's profileSend private message
Joshua Meadows (DemoRic)
support
support


Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Thu Nov 09, 2006 3:00 am Reply with quoteBack to top

Check your script.
http://www.yourdomain.com/function.mail
I assume yourdomain isn't actually Your Domain.

If it is still a problem look through your php.ini it will have the phpmail settings located in it.
View user's profileSend private messageYahoo MessengerICQ Number
brandonrc
 
 


Joined: 26 Nov 2006
Posts: 1
Location: Snoqualmie Valley, Wa

PostPosted: Sun Nov 26, 2006 8:28 pm Reply with quoteBack to top

I am also having this exact problem (I am glad to see I'm not the only one).

I looked in my php.ini file and there is not much to do in the mail setup section.

Code:

[mail function]
; For Win32 only.
SMTP = valleygeek.net
smtp_port = 25

; For Win32 only.
sendmail_from = brandon@valleygeek.net

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").S:\apache2triad\mail
;sendmail_path =


I changed the "SMTP" from localhost to valleygeek.net (a properly directed domain) and still no luck. I also tried my local IP address just for kicks. I still had the same error. I did restart apache after changing the values.

The CGI mail test successfully sends an e-mail, but the PHP test is not working. brandon@valleygeek.net does exist (again, the CGI script does sent properly).

Just for redundancy sake, here is my error message:
Code:

[26-Nov-2006 12:03:43] PHP Warning:  mail(): SMTP server response: 550 Relay denied in *:\apache2triad\htdocs\apache2triadcp\test.mail.php on line 15


EDIT:

After a few hours of reading I was able to fix this using the information from this thread:
http://apache2triad.net/forums/viewtopic.php?t=3925

The fix was to edit *:\apache2triad\mail\smtprelay.tab and add the line:
Code:
"127.0.0.1" "255.255.255.0"


Hope this will help you!
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT