Link to home
Start Free TrialLog in
Avatar of EICT
EICTFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to send email using php from XAMPP - do i need Mercury Mail Server

Hi,
I'm not what familiar with XAMPP so apologies for the basic question.

Question 1
We have an MS Exchange Server. Can I send emails to Exchange from php via XAMPP webserver without having a mail server (i.e. Mercury Mail Server) installed, but using the webserver as an Exchange client (like outlook)?

Question 2
Previously our webserver was installed in IIS and used SMTP service to send mail,  but since moving to XAMPP on a new server the mail no longer works. Mercury Mail Server is not installed.
There is a receive connector, which worked before, in Exchange. but I get the error  "authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 SMTP server ready)]"  now.
Was the IIS SMTP service acting as a mail server previously? Can I install the SMTP service on the new webserver or is this I assume part of the Mercury Mail Server install?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Systech Admin
Systech Admin
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EICT

ASKER

Thanks Gaurav
The authentication settings are  TLS and basic authentication for Exchange users and Anonymous users. The scope is set to the webserver IP address.  It's set up the same as before but I had already changed the IP to the new webserver.

Can I confirm I don't need Mercury Mail Server?

Thanks
No need of mercury server.  Just do few check from webserver:

Telnet the port 25 on Exchange and see what you are getting.
Avatar of EICT

ASKER

It's obviously as TLS issue.

Do this http://osticket.com/forum/discussion/3422/failed-to-configure-email-smtp-settings 
stops PEAR using TLS so the error goes but it's masking the problem really.
I should be able to use TLS?
you can use the TLS, first provide the report of the telnet port 25 to exchange server.
Avatar of EICT

ASKER

I can telnet port 25 on exchange server from the webserver
when I type Helo I get a response with mail server name and IP
if I type starttls I get SMTP server ready response
Is this sufficient?
Yes, now you try with Application side and see if you are getting any error?
Avatar of EICT

ASKER

Yes still getting the errors :-(  I shall check the username and password details in the app in case there is a problem here.
Avatar of EICT

ASKER

No further forward on this. Everything looks ok. For what it's worth I'm using the PEAR mail class.
Avatar of EICT

ASKER

I fixed this. Can't remember now what I did but I think it was to do with the permissions in the receive connector.