Solved – Joomla 3 Localhost – Could not instantiate mail function.

While working on a Joomla site in WAMP I went to test the email and got the following error.

Notice
Could not instantiate mail function.

Here is how I fixed this. This could be the long way, but it worked for me.

  1. I had to set up sendmail. I wrote about my best solution for localhost in this post.
    http://blog.grimeymedia.com/setting-up-mail-service-in-wamp/
  2. Then in Joomla I went to Global Configuration  >> Server tab. At the bottom is “Mail Settings”.
  3. I changed “Mailer” to “Sendmail”, and set the path to  “C:\wamp\sendmail\sendmail.exe”
    sendmail_path_joomla

When using GMail to set this up you will to “turn on” their “use less secure app” setting. Log into your Google account and then Google “use less secure app” and it should link you to the page to turn this on.

I hope this helps someone else out there…

0 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.