Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP + Exchange Server 2

Status
Not open for further replies.

csbdeady

Programmer
Joined
May 18, 2002
Messages
119
Location
GB
Hi

I have PHP 4.3.4 installed with Apache 2 web server on Windows 2000 Server.

I would like to be able to send emails through a PHP front-end to addresses internally within our company. The company uses Microsoft Exchange Server.

How do I connect PHP to MS Exchange Server, when MS E.Server is located on another computer elsewhere?

Many Ta's!
-Colin
 
Through SMTP.

When running PHP on Win32, there are some settings in php.ini that you have to be aware of: SMTP and sendmail_from.

If you set SMTP to the IP address or fully-qualified domain name of that Exchange Server, then you can (if the Exchange box is configured to do so) send mail to any address through that SMTP setting.

To facilitate the sending of complex email messages (HTML with embedded images, etc), I recommend you use the PHPMailer class:
Want the best answers? Ask the best questions: TANSTAAFL!!
 
Superb! Many thanks for the excellent help :)

-Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top