PHP mail settings

I have godaddy VPS. Its windows server with plesk. Two websites are hosted. for one of them email function works for the other one it gives 503 error, smtp authentication, This mail server requires authentication when attempting to send to a non-local e-mail address.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commonly, the php.ini defines the mail handling, when hosting different site, the mail handling becomes more difficult
Your options are either install iis SMTP component if not installed already and use the local to handle the delivery.
Alternatively, if each domain has to send through their respective provider and thus use an SMTP session to the specified host..
The 503 means an internal failure such that looking through the log, or including debug/logging of errors that you can refer back to in order to identify what the cause for the error is.

The auth requirement is in place to avoid/prevent server from being misused as a spam distributor.

Php includes process that deals with SMTP auth.
If using local, there is a configuration dealing with relaying that you can authorize relaying to any recipient.
Scott FellDeveloper & EE ModeratorCommented:
Do you have email turned on for the other domain?  It should just work. If you have to use authentication, then you can't use the base mail function because it does not support authentication.

I have stopped using the server to send out email a long time ago and have used either sendgrid or mandrill.
Scott FellDeveloper & EE ModeratorCommented:
In plesk, go to Tools Settings > Mail Server settings.  On mine it is

There you will see the relay restrictions are  probably on,and you can add IP's, "Use no relay restrictions for the following networks:"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dreamer123456Author Commented:
I created a mailbox for my domain since it was not allowing email to non-local account. I set up mail forwarding from that email. This works but no other solution worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.