God, It’s really frustrating. I got this error when I tried to send mail using Joomla
could not instantiate mail function
Here are the detail that you have to configure:
Windows Environment
1. Edit php.ini
SMTP = smtp.gmail.com
smtp_port = 465
sendmail_from = penyihirkecil@gmail.com
sendmail_path = “"C:\xampp\sendmail\sendmail.exe" -t”
2. Edit your sendmail.ini
account Hotmail
tls on
tls_certcheck off
host smtp.live.com
from [exampleuser]@hotmail.com
auth on
user [exampleuser]@hotmail.com
password [examplepassword]
3. Edit your joomla mail setting
mailer: sendmail
mail from: [your email]
from name: [your name]
sendmail path: [your system send mail path]
SMTP Authentication: No
SMTP Security: None
SMTP Port: 25
SMTP Username:
SMTP Password:
SMTP Host: localhost
uBuntu Environment
1. Edit php.ini
SMTP = smtp.gmail.com
smtp_port = 465
sendmail_from = penyihirkecil@gmail.com
sendmail_path = /usr/sbin/sendmail
2. Edit your joomla mail setting
Mailer: SMTP Server
SMTP Security: SSL
SMTP Port: 465
SMTP Authentication: Yes
SMTP Username: [Your Gmail username]
SMTP Password: [Your Gmail password]
SMTP Host: smtp.gmail.com