Cannot email using local host

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
Dobson
Forum Newbie
Posts: 11
Joined: Sat Apr 29, 2006 4:53 am

Cannot email using local host

Post by Dobson »

Hi guys,

I'm trying to get my page to send an email to myself but not through my ISP just through the local host. I get this error

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay

I just want the page to send an email from my computer to my computer but not sure how to do it. I'm running IIS, Mysql on Win XP.

Thanks,
Rob.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Cannot email using local host

Post by Chris Corbyn »

Dobson wrote:Hi guys,

I'm trying to get my page to send an email to myself but not through my ISP just through the local host. I get this error

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay

I just want the page to send an email from my computer to my computer but not sure how to do it. I'm running IIS, Mysql on Win XP.

Thanks,
Rob.
Looks like your smtp server is either being blocked or it's set up without localhost/127.0.0.1 as an allowed client.
Dobson
Forum Newbie
Posts: 11
Joined: Sat Apr 29, 2006 4:53 am

Post by Dobson »

Thanks for replying!!

If you mean IIS/Defualt SMTP Virtual Server (Properties)/Access/Connection/ i've set 127.0.0.1 as an allowed user. Is there anything else I need to configure?
Dobson
Forum Newbie
Posts: 11
Joined: Sat Apr 29, 2006 4:53 am

Post by Dobson »

Whoops! That should be Relay not Connection. I'll go in and change it... ... ... it worked! ah, silly me. thanks for your help d11wtq!
Post Reply