Google SMTP Server – How to Send Emails for Free

Google's GMail SMTP server is a free service for anyone who has a GMail account. You can use this free SMTP server to send emails from your favourite web application.

If you don’t have a GMail account, you can create one at the GMail account creation page.

Then all you need to do is configure your mail client to use GMail for outgoing mail server. The details you should use are:

Outgoing Mail (SMTP) Server:

Use Authentication: Yes

Use Secure Connection: Yes (this can be TLS or SSL depending on your mail client)

Username: your GMail account, i.e.

Password: your GMail password

Port: 465 or 587

In case you use Google Apps with your domain name and you have created email accounts inside, you should use email account with the Username: field, i.e.

The same email settings can be used with the email functionality of website application such as Joomla, PrestaShop etc. If you have any troubles configuring your website applications with the above settings you can contact the SiteGround Technical Support team and they will be glad to assist you.

Setting up your email is easy when you have the right host by your side. If you need a reliable partner to help you resolve email issues and provide expert support, check out our email hosting services.


  1. Reply May 27, 2015 / 20:38 MagdySiteGround Team


  2. Reply September 16, 2015 / 23:03 Felix AlvaradoSiteGround Team

    Hello, i have a question to ask. I can use this free server SMTP to send emails from an application like some made it in MATLAB ?

    • Reply September 17, 2015 / 09:09 Hristo PandjarovSiteGround Team


  3. Reply September 18, 2015 / 12:43 Mike WisemanSiteGround Team

    This doesn't work for me. Says "Authentication failed. Please check username/password."
    I am specifying my correct gmail username and password.

    • Reply September 23, 2015 / 09:55 Ivan YordanovSiteGround Team

      Please make sure that you have specified the correct SMTP host: Your application should be working properly with the configuration from the article. However, if there is a specific problem - do not hesitate to open a support ticket with the details about the case - we will be happy to assist you.

  4. Reply September 30, 2015 / 02:09 BenSiteGround Team

    Hi there,
    I am getting an authentication issue with using gmail smtp.
    My project is hosted at for dev purposes, but each time I attempt to use gmail smtp to send my mail, the authentication is blocked and I am notified that there is an unknown device accessing my account.
    I have enabled the setting to allow non-trusted apps, but to no avail will gmail smtp allow me to authenticate.
    Any ideas?

    • Reply October 2, 2015 / 05:48 Hristo PandjarovSiteGround Team

      Probably something is not set right with the domain. Please, open a ticket in our Help Desk so we can investigate in details.

  5. Reply October 4, 2015 / 13:42 Roberto RochaSiteGround Team

    I cant set my DVR to send motion detection e-mails.
    It does not work.
    Test ... Failed
    The server does not support the authentication mode used by the device
    Is there any thing that i can do?

    • Reply October 5, 2015 / 05:33 Hristo PandjarovSiteGround Team

      I would recommend that you check the manual of the DVD or contact the support of the company that has created it for further assistance. That should be easily doable if configured correctly.

* (Required)