Page 1 of 1

Email Problem

Posted: Fri Jan 16, 2009 12:23 pm
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

Re: Email Problem

Posted: Fri Jan 16, 2009 12:25 pm
by RobertGonzalez
Do you have the necessary mail server settings set in php.ini?

Re: Email Problem

Posted: Fri Jan 16, 2009 12:52 pm
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

Re: Email Problem

Posted: Fri Jan 16, 2009 1:25 pm
by RobertGonzalez
And you know those are right? I mean you actually have an smtp server running on localhost:25?

Re: Email Problem

Posted: Fri Jan 16, 2009 1:28 pm
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.

Re: Email Problem

Posted: Fri Jan 16, 2009 1:30 pm
by Burrito
try sending mail out with a different application...

Re: Email Problem

Posted: Fri Jan 16, 2009 1:30 pm
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.

Re: Email Problem

Posted: Fri Jan 16, 2009 2:18 pm
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

Re: Email Problem

Posted: Fri Jan 16, 2009 2:27 pm
by Burrito
then it looks like you need to configure your smtp server to send mail outside of your local domain.