Zen Cart Logo
Forums / Installing on a Windows Server / Email Error: Could not instantiate mail function on XAMPP

Email Error: Could not instantiate mail function on XAMPP

Locked

Views: 5,427

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Jul 2008, 5:33 PM
#1
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Email Error: Could not instantiate mail function on XAMPP

I encounter two problems that I cannot figure out how to deal with. Firstly, I am trying
to set up a test customer named Mr. Jacques Pires. Having entered his details and hit the 'Submit'
button, instead of seeing the confirmation screen, I receive an error message saying:
'Email Error: Could not instantiate mail function.
Please check Admin->Configuration->Email Options->Email Transport.' I hit the back button
to return to the signing up page and can log in without any problem. Which means his details are entered
into the database. I don't get this.

Secondly, in the XAMPP Control Panel if Mercury is started, I cannot go to the store home page
(http://www.example.com/store or example.com). All I see is a blank page so I have to stop Mercury to get these pages work.
I would be pleased if someone gave me some advice on how to remedy this problem.

15 Jul 2008, 10:30 AM
#2
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Email Error: Could not instantiate mail function on XAMPP

The reason you are seeing that error is probably because your Mercury mail server wasn't running or the email transport field in your email options screen of your admin is configured wrongly.

From your second error description, it seems like you may have an XAMPP installation that is different from the book's. This usually causes a port conflict when you attempt to start Apache and Mercury Mail together as detailed in this thread. You might also want to try out the solutions found in that thread.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

15 Jul 2008, 2:24 PM
#3
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: Email Error: Could not instantiate mail function on XAMPP

I think I solved the problem. In fact both of the probs mentioned above were related to a port conflict between Mercury and Apache. In Mercury.INI file, I changed 'Server Port' from 80 to 85 thus letting Apache freely use the port 80. It seems now that everthing runs smoothly. I also left email transport mode set as it is (php) which, at beginning, I thought was the cause of the prob.

Do you think changing Mercury.Ini file this way may cause any problem in the future or I did the right thing?

Many thanks for your support. Appreciated.

16 Jul 2008, 6:18 AM
#4
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Email Error: Could not instantiate mail function on XAMPP

Thanks for confirming the problem with the port conflict.

There shouldn't be any problems changing MERCURY.INI that way. Only problem in future would be if another program decide to use port 85 as well.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store