Php Simple Email to Exhange

the mail() function

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jul 14, 2011 10:01 pm

Php Simple Email to Exhange

Postby Deepa » Thu Jul 14, 2011 10:31 pm


We run a php applications using xampp on windows 2003.My company has recently moved its mail server to exchange.
I need to write PHP code to sends emails to my exchange server.

Change the port name in php.ini file

I am getting the following error
Must issue a STARTTLS command first

Please help,

User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Php Simple Email to Exhange

Postby egami » Fri Jul 15, 2011 5:42 am


So here's the deal.
Exchange 2003+ is quite the animal, and in a sense, quite the secured beast.
The only way you can use * > Exchange 2003 is to use the FRONT END server. This has SNMP open to * on TCP 25.

There are other ways around it, but this is your best bet.
You can open up relay for everything internal to your IP's, but that's a REALLY bad idea.

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 3 guests