Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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.

Edit your php.ini file and add:

[mail function]
SMTP = put your SMTP server here
smtp_port = 25
sendmail_from =

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 "" 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.