By default, Joomla 2.5 uses the php mail() function to send emails from the server. Servers support the php mail() function, however not all servers have this enabled. If 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.
  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.

Note: Make sure port 465 is not blocked by a firewall and allow execution php_openssl.dll in php.ini file

You must open php.ini and remove the semicolon to:


If you don't have that line, check that you have the file (In my PC is on D:\xampp\php\ext) and add this to php.ini in the "Dynamic Extensions" section:


Theo InMotion Hosting