By default, Joomla 2.5 uses the php mail() function to send emails from the server. At InMotion Hosting, our servers support the php mail() function, however not all servers have this enabled. If you are not hosting with InMotion Hosting and your server does not support the php mail() function, you can configure Joomla to send email using SMTP. This method is also a good way to resolve the Could not instantiate mail funtion error. Using SMTP to send email requires that you have a valid email address, so if you haven't already, be sure to create an email address.

To configure Joomla 2.5 to use SMTP:

  1. Log into your Joomla Dashboard
  2. In the top menu, hover over Site and then click Global Configuration
  3. Click the Server tab
  4. Under Mail Settings, configure the following settings and then click Save:
    Mailer Set this to SMTP
    SMTP Authentication Set this to Yes
    SMTP Security
    SMTP Port
    If your SMTP server uses SSL, select this option from SMTP Security and then enter the SSL Port required for your SMTP server
    SMTP Username Enter your SMTP Username, which generally is your full email address
    SMTP Password

    This will usually be your email address' password

    SMTP Host If your email account you're sending email from is on the same server as your Joomla 2.5 site, use "localhost" here. Otherwise, enter your SMTP hostname here.
    configure-joomla2.5-mail-settings
  5. Congratulations, your Joomla 2.5 website is now configured to use SMTP! Be sure to test your site and ensure emails are sending properly. We tested this by signing up for new users within Joomla and monitored the email notifications sent to the administrators.
You are viewing Section 3: How to configure Joomla 2.5 to send email using SMTP
Section 4: How to enable the Debug System in Joomla 2.5
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

n/a Points
2014-04-29 6:51 am

Not working.

Staff
8,314 Points
2014-04-29 8:21 am
We have tested the instructions and they do indeed work correctly in Joomla 2.5. Could you clarify what specific step you are having issues with?
n/a Points
2014-06-06 4:37 am

Thanks for this information.

n/a Points
2014-06-12 6:59 am

Hi,

I tried to follow these instructions but I still get the same error:

AVISOLa siguiente dirección de destinatario ha fallado: from_mail@yourdomain.com : MAIL not accepted from server,530,5.7.0 Must issue a STARTTLS command first. m3sm3308297wik.7 - gsmtpError del servidor SMTP: 5.7.0 Must issue a STARTTLS command first. m3sm3308297wik.7 - gsmtpError del servidor SMTP: 5.7.0 Must issue a STARTTLS command first. m3sm3308297wik.7 - gsmtp

I need help, please. Thanks in advance,

A.

Staff
8,314 Points
2014-06-12 8:20 am
Within the mail settings in the SMTP Security dropdown, select TLS. It should then begin working correctly.
n/a Points
2014-06-12 10:37 am

Hi,

I selected TLS but now it says SMTP Connection Failed.

If I select PHP Mail or Send Mail no error is prompted, but I can't receive the mail at the selected address. 

If SMTP is the sender where may I select the receiver of the mail?

Thanks in advance,

AC

Staff
8,314 Points
2014-06-12 10:49 am
Could you clarify the exact settings that you are using within your configuration?
n/a Points
2014-06-12 12:01 pm

Hello,

I have no errors selecting PHP Mail or SendMail, but I don't receive any email with these settings.

Setting up

SMTP

email: the same as administrator email@hotmail.com

Sender: the name that will be displayed (not an email)

Authentification: Yes

Security SMTP: TLS

Port SMTP: 25

SMTP User: the same as administrator email@hotmail.com

Password SMTP

SMTP Server: smtp.live.com

 

It prompt the error

SMTP connection failed and no mail is sent. Any suggestion?

Thanks, 

Alberto

Staff
8,314 Points
2014-06-12 12:36 pm
As you're using port 25, you'll want to have the Security option turned off. As you are using hotmail's servers, I don't have much information on what may be going on when connecting to them, so you may want to contact their support for more information.
n/a Points
2014-06-12 1:15 pm

Hello,

thanks for quick replies. 

Now I set a gmail account.

If I turn off Authentication I get a Google error: Authentication required.

If I set Security SMTP to none I get a Google error: must TLS before.

If I set myMail@myDomain.es I get no errors and no mails.

Any suggestion?

Thanks in advance,

AC

Staff
18,017 Points
2014-06-12 1:52 pm
Hello Alberto,

If Google is forcing TLS then you will want to use that but change the port number. 25 is reserved for non-secure. 465 is the normal port number for TLS-SSL. Give that a try.

Kindest Regards,
Scott M
n/a Points
2014-06-21 4:18 am

Hello Sir,

 

i am facing problem while setting up smtp mail in joomla 2.5

 

Error

 

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  infobuzmember06@gmail.com
    SMTP error from remote mail server after end of data:
    host gmail-smtp-in.l.google.com [173.194.79.26]:
    550-5.7.1 [162.144.42.79      12] Our system has detected that this message is
    550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail,
    550-5.7.1 this message has been blocked. Please visit
    550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for
    550 5.7.1 more information. zm3si13029002pac.97 - gsmtp

kindly suggest what need to be done my email setting as below 

 

  • Mailer *  PHP Mail   Sendmail   SMTP  
  • From email
  • From Name
  • Sendmail Path
  • SMTP AuthenticationYesNo
  • SMTP Security  None   SSL   TLS  
  • SMTP Port *
  • SMTP Username
  • SMTP Password
  • SMTP Host                          smtp.mail.com
  •  

Staff
8,706 Points
2014-06-23 11:30 am
Hello Atuel,

Thank you for contacting us. This means that your SMTP settings are correct, since email is being sent from Joomla successfully; but Google is flagging it as spam.

I recommend reviewing the link Google provided to their Bulk Senders Guidelines, to make sure you are within their guidelines.

Also, setting up SPF records and Domain Keys can help identify you as a valid server for sending email.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-06-27 1:44 am

Hy,

I am using the cronoform component in joomla

I use in this custom code

when i send the mail it going into spam

but this mail when i use it on other server going perfectely

please resolve my issue

it's urgent

thanks

 

 

 

Staff
8,706 Points
2014-06-27 8:05 am
Hello cool boy,

Thank you for contacting us. If your emails are being flagged as spam, using SPF records and Domain Keys can help identify which machines are authorized to send email from your domain(s).

Also, I recommend reviewing our guide on common words that trigger spam filters. If you include these terms, it can result in getting flagged as spam.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-07-22 7:27 am

Hi,

I am running my website on Joomla 2.5 configured to use the PHP Mailer and a month ago something very unusual happened whereby multiple copies of the same email message were being sent out to users. Email messages are automatically sent out when a user registers or post a task etc. confirming to the user their action.

Have anyone experienced such issue whereby multiple copies of the same email message are sent out to the same users and how to resolve this?

Staff
18,017 Points
2014-07-22 8:48 am
Hello Kenneth,

You are the first person who has reported this issue so far. If it happens again, please , contact our Live Support as quickly as possible so they may investigate the server email logs to see if/why multiple emails were sent out.

Kindest Regards,
Scott M
n/a Points
2014-07-25 2:58 pm

Thanks Scott. Will do.

n/a Points
2014-07-25 7:30 am

Hi,

Thanks for the steps,

its easy to follow them.

n/a Points
2014-08-13 8:20 am

hi when new users are register/create accout to my site i need to send confirmation to their email address it give me like this message "Your account has been created and a verification link has been sent to the email address you entered. Note that you must verify the account by clicking on the verification link when you get the email and then an administrator will activate your account before you can login." but no verification message is apper in the email wheather in yahoo or Gmail ..... even i chack in spam but no message so what i can  do? is that from the joomla module that i uesed for my  or any error of configuration or......

 

 

 

tnx a lot

Staff
8,314 Points
2014-08-13 11:34 am
Ensure that your message is being successfully authenticated using SMTP and has the correct credentials. Without the correct SMTP credentials, the message will fail to send.
n/a Points
2014-08-17 9:22 am

I found out lately that my website sends out relay of spam messages with email address mapped to my domain (marvin_calo@mydomain.tld) , I never created these email addresses in my cpanel and it really does not exist there.

How do i stop this parmanently?

Staff
8,706 Points
2014-08-18 10:15 am
Hello Obasi,

Thank you for your question. There are several measures you can take to counter people spamming from your site.If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

24 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!