PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old July 25th, 2003, 03:17 AM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem with Sending mail by PHP and SMTP server

I'm using winxp and apache as the web server.And i have installed the SMTP server on my computer. And the php.ini has modified. But when i using the send mail function in PHP, it returns such error:

Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for zerog@hkem.com

Is there problem?How can i slove it?By the way, it can send mail to the user on the local machine.Can anyone help me?

Reply With Quote
  #2  
Old July 25th, 2003, 11:35 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Problem with Sending mail by PHP and SMTP server

This is a problem with your SMTP server setup...not PHP.

Do a google search for "550 5.7.1 Unable to relay for" (with the quotes). Lots of information there.

Reply With Quote
  #3  
Old July 26th, 2003, 05:11 AM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem with Sending mail by PHP and SMTP server

Thanks for your reply,Matt.

There is such a lot of information about the problem. But a little of them is useful.Besides,some links have also changed.Can you tell me which web site teach me how to config the SMTP server?

Reply With Quote
  #4  
Old July 26th, 2003, 12:40 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Problem with Sending mail by PHP and SMTP server

Which SMTP server are you using?

Reply With Quote
  #5  
Old July 27th, 2003, 12:07 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Problem with Sending mail by PHP and SMTP server

Thanks for your reply first.
I'm using the SMTP server in the IIS in the win XP.But i'm not using IIS as the web server.I'm using apache as the web server.

Reply With Quote
  #6  
Old July 28th, 2003, 12:38 AM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem with Sending mail by PHP and SMTP server

Thanks for your reply first.
I'm using the SMTP server in the IIS in the win XP.But i'm not using IIS as the web server.I'm using apache as the web server.

Reply With Quote
  #7  
Old July 30th, 2003, 12:42 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Problem with Sending mail by PHP and SMTP server

Unable to relay is a safety feature built into your mail server. This prevent spammers from using your mail server as relay. There has to be a section in the config that says what IP can send mail

Reply With Quote
  #8  
Old July 30th, 2003, 06:50 AM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem with Sending mail by PHP and SMTP server

Thanks for your reply first.

I have already configed the SMTP mail server and allow a ip to relay, but the same problem occurs. Can anyone help me?

Reply With Quote
  #9  
Old July 30th, 2003, 10:23 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Problem with Sending mail by PHP and SMTP server

did you configure 127.0.0.1 and localhost?

Reply With Quote
  #10  
Old July 30th, 2003, 12:38 PM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem with Sending mail by PHP and SMTP server

yes,i have configed the ip(allow relay) as 127.0.0.1.Is there any thing that i havn't done?
Besides,I also try to use Argosoft mail server to try the mail function. But the same problem occurs. And something special is that if it can only send the mail to the account on my computer(user set in the mail server).What can i do to solve this problem? Can you briefly describe the process of setting up the SMTP mail server in the IIS of winxp? By the way,thanks for your reply.

Reply With Quote
  #11  
Old August 9th, 2003, 09:21 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Problem with Sending mail by PHP and SMTP server

Ok if you goto
Properties dialog of your SMTP virtual server |G o to the Access tab | Click the Relay button | Add a record for 127.0.0.1, and your real IP and localhost

Did you do all three?

Reply With Quote
  #12  
Old August 10th, 2003, 09:39 AM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem with Sending mail by PHP and SMTP server

thanks your reply first.
Actually,i did all the three things that you've saidalready.But it still can't send the mail.

Reply With Quote
  #13  
Old August 10th, 2003, 11:46 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Problem with Sending mail by PHP and SMTP server

Ok, I am at a loss on this one. I must bow out. Have you tried linux

Reply With Quote
  #14  
Old August 11th, 2003, 01:20 AM
zerog zerog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 zerog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem with Sending mail by PHP and SMTP server

Thanks for your reply.
Sorry,as i'm using win xp as the os,i can't install linux and check it.....
By the way,i want to ask if there is any affect if i install the router and send the mail?

Reply With Quote
  #15  
Old August 14th, 2003, 01:41 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Problem with Sending mail by PHP and SMTP server


In the IIS (Admin Tools - IIS)
Right Click in Default SMTP Server
Properties
Acces Tab
In Relay Restrictions click Relay
Choose -> All Except the list below
OK - Apply
Stop and Start SMTP Server.

Work with me.

paulo@cotonet.pt

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Problem with Sending mail by PHP and SMTP server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |