PHP/HTML Email Login/Pass to be sent to exchange server

I am trying to install an email login on my company's homepage and have the login/pass be sent to an Exchange Server to open up the Outlook Web Mail.

I already have it working with the classic popup login but I would rather have the login on the page itself.

I found multiple scripts for this but alas... they are in asp.

Any ideas??

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.

Richard QuadlingSenior Software DeveloperCommented:
Just have a link to the Exchange Server and use it's own login page.

Richard QuadlingSenior Software DeveloperCommented:
If you mail server is

then, if the webmail service is installed/configured/running/properly, then should give you a login page.

mechanyxAuthor Commented:
Ref: RQuadling

My web service is configured properly and I can use the server's own login box but I was instructed to create a login directly on the homepage that passed the login/pass directly to the server and opened the webservice from there.
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Grab the source of the web page on the exchange server, look at the <form> section for the login box.

Copy that HTML into your php, making sure to add the address of the exchange server in the ACTION= attribute.

For example lets say the remote site is at, and the HTML source for the login box looks like this:

<form method=post action=login.asp>

you need to make sure your HTML for the form says

<form method=post action=>

the rest should remain the same, alter however you need.

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
Were you able to solve this problem? Where is the HTML on the Exchange server? Please post your comments here or email me at
Richard QuadlingSenior Software DeveloperCommented:
You could also use PHP Curl to "hide" the login process.

I think that would be the safest way.

Alternatively, edit the default login page for exchange's webmail.
Richard QuadlingSenior Software DeveloperCommented:
Points to romulusnr.

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.