-2

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?

orezvani
  • 107
  • 1

1 Answers1

2

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.

Oldskool
  • 2,005
  • 1
  • 16
  • 26
colealtdelete
  • 6,009
  • 1
  • 29
  • 34
  • I did it but I get the error: – orezvani 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 – orezvani Dec 28 '12 at 10:45