How to Configure Joomla to Use SMTP For Sending Emails

By default, Joomla uses the PHP Mail function to send its emails. This has proven over and again vulnerable as PHPMail() is open and used by trojans and viruses. Most clients have infected files which just send mails using PHPMail(), because it doesn't authenticate.  However it is better to use SMTP as it handles sending messages better as SMTP function isn't open and the email must be authenticated; i.e, a real email address and password must be written into your code and must be verified by the mail server before the email is sent. This to an extent increases the legitimacy of emails.

Bear in mind that the email address which you are using for “Mail from” must be of type and must also be same as the smtp username in the setting.

Ok lets dig in alreday!!!

Step 1: Log into your Joomla Dashboard.

Step 2: In the top menu, hover over System and then click Global Configuration.

joomla smtp

Step 3: Click the Server tab.

joomla smtp

Step 4: Under Mail Settings, configure the following settings and then click Save:

From Mail: email address created in cpanel i.e,
From Name: Name of your Company

Mailer: SMTP
SMTP Port: 25
SMTP Authetication: Yes
SMTP Security: None
SMTP Username: email address created in cpanel //i.e,
SMTP Password: password for your email address //password of email above
SMTP Host: localhost

joomla smtp
joomla smtp

Step 5: Click on save on the Menu bar.

joomla smtp
Step 6:  You can now click on SEND TEST MAIL from the configuration page to confirm that the settings are working perfectly.

joomla smtp

You should get a response as below for a successful set up.:

joomla smtp

Congratulations, your Joomla website is now configured to use SMTP! Be sure to test your site and ensure emails are sending properly.

Was this answer helpful?

 Print this Article

Also Read

How to Configure WordPress to Use SMTP For Sending Emails

By default, WordPress uses the PHP Mail function to send its emails. This has proven over and...

PHPMail() Function Disabled

There are so many ways to send email using php. The two main ways to do this is either using...

How to Create a New Email Account

Overview You have the ability to create email accounts from your cpanel. The number of email...

Creating email autoresponses

Creating email autoresponses   Overview You can use autoresponders to send a message...

Why am I getting a Domain has exceeded the max defers and failures per hour error?

As of the release of cPanel 11.32, to which we upgraded in early March 2012, a new feature...