Email Problem

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
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Email Problem

Post by phpcoder »

HI,
I am using windows server , PHP and mysql configured under IIS. I am having problem in email script. When I try to send email I get the following error message:

mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local in.........

I am using mail() functin to send email. I think the server requires authentication is there any way I can authenticate or is there any other way of sending email.
Thanks
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Email Problem

Post by RobertGonzalez »

Do you have the necessary mail server settings set in php.ini?
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Re: Email Problem

Post by phpcoder »

Everah wrote:Do you have the necessary mail server settings set in php.ini?
Yes I got following set up in my php.ini
SMtp_host localhost
Smtp_port 25
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Email Problem

Post by RobertGonzalez »

And you know those are right? I mean you actually have an smtp server running on localhost:25?
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Re: Email Problem

Post by phpcoder »

Everah wrote:And you know those are right? I mean you actually have an smtp server running on localhost:25?
yes smtp is runing on local machine.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: Email Problem

Post by Burrito »

try sending mail out with a different application...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Email Problem

Post by RobertGonzalez »

Sorry mate. All I can suggest from here is either reading the manual on mail(), using a mail library like Swiftmailer or hanging out on #php on IRC and see if someone else can answer that for you.
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Re: Email Problem

Post by phpcoder »

Burrito wrote:try sending mail out with a different application...
I tried using outlook express :

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'xxx@xxxxx.com'. Subject 'test', Account: 'test', Server: 'smtp.xhosa-dev.com', Protocol: SMTP, Server Response: '550 Requested action not taken: mailbox unavailable or not local', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: Email Problem

Post by Burrito »

then it looks like you need to configure your smtp server to send mail outside of your local domain.
Post Reply