Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using WAMP server in windows to publish my joomla web site. But I get the error

Could not instantiate mail function.

I think mail function or module is not installed on the server. How can I fi it?

share|improve this question

closed as off topic by Michael Hampton, Ward, John Gardeniers, Brent Pabst, mdpc Dec 11 '12 at 17:30

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Edit your php.ini file and add:

[mail function]
SMTP = put your SMTP server here
smtp_port = 25
sendmail_from = me@example.com

Then restart the apache service.

share|improve this answer
    
I did it but I get the error: –  emab Dec 28 '12 at 10:45
    
this error: Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.googlemail.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\test.php on line 4 –  emab Dec 28 '12 at 10:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.