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: smtp.gmail.com

Use Authentication: Yes

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

Username: your GMail account, i.e. user@gmail.com

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. user@yourdomain.com

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.

42 Comments

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

    thanks

  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

      Yes

  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: smtp.gmail.com. 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 ASP.net project is hosted at azurewebsites.net 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?
    Cheers,
    Ben.

    • 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.

  6. Reply October 19, 2015 / 18:21 kachySiteGround Team

    i tried it on turbo mailer,following ur instructions but it always say "applicationerror: no connection to smtp server smtp.gmail.com,8, Eof occurred in violation protocol

    • Reply October 20, 2015 / 06:13 Hristo PandjarovSiteGround Team

      I would recommend that you contact your applicatiom developers for additional assistance on that matter.

  7. Reply October 19, 2015 / 19:46 ClareSiteGround Team

    I have tried this on my phone and I get "Unable to set up account. Authentication failed" message on the phone and an email to my gMail account saying "Someone just tried to sign in to your Google Account from an app that doesn't meet modern security standards". Is there a way to overcome that please?

    • Reply October 20, 2015 / 15:42 Ivan YordanovSiteGround Team

      It seems that this is a common issue. There is a detailed explanation provided from Google - you can check it at the Following Link

  8. Reply October 19, 2015 / 21:33 BenSiteGround Team

    For the people having issues. It's likely that you have to update your IMAP settings to enabled.

  9. Reply October 21, 2015 / 12:59 shekharSiteGround Team

    run:
    Failed to sent email.
    javax.mail.AuthenticationFailedException: 534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 https://support.google.com/mail/answer/78754 pj10sm9137195pbc.59 - gsmtp

    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:826)
    at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:761)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:685)
    at javax.mail.Service.connect(Service.java:317)
    at javax.mail.Service.connect(Service.java:176)
    at javax.mail.Service.connect(Service.java:125)
    at javax.mail.Transport.send0(Transport.java:194)
    at javax.mail.Transport.send(Transport.java:124)
    at sendmail.SendMail.SendMail(SendMail.java:67)
    at sendmail.SendMail.main(SendMail.java:90)
    BUILD SUCCESSFUL (total time: 9 seconds)
    I am getting above problem even after setting everything correctly

    • Reply October 23, 2015 / 10:44 Ivan YordanovSiteGround Team

      It seems to be related to the application you are using for connecting to Gmail. Please open a support ticket if you are using our services and describe the case in details - we will be happy to assist you. Otherwise, you will ned to contact application's developer or host in order to investigate the issue.

  10. Reply October 23, 2015 / 14:51 WaelSiteGround Team

    Hello there, I am sorry but I tried everything there will be limitation on number of message you can send how can I increase messages!

    • Reply October 25, 2015 / 12:51 Hristo PandjarovSiteGround Team

      I am afraid that's a Google limitation so you don't have any actual control over it.

  11. Reply October 28, 2015 / 10:19 WIPocketSiteGround Team

    Is there any api to send e-mails by googles SMTP server that uses different ports?

    • Reply November 3, 2015 / 13:31 Ivan YordanovSiteGround Team

      You can review more detailed information about the Google SMTP configuration at:

      https://support.google.com/a/answer/176600?hl=en&ref_topic=1354753

      and the documentation for the Gmail API is available at:

      https://developers.google.com/gmail/api/guides/sending

  12. Reply November 1, 2015 / 09:42 LotionSiteGround Team

    Will send test email successfully but later will not be sending any further mails...any idea

    • Reply November 2, 2015 / 11:20 Marina YordanovaSiteGround Team

      Unfortunately this information is not enough to recreate the issue. We would need more details in order to suggest a solution.

  13. Reply November 6, 2015 / 06:16 grahamSiteGround Team

    Google has upgraded security and this will no longer work as easily as using the smtp.gmail.com outgoing with a username (email address) and password. This is a massive headache for business users of google apps for work... however there is a simple work around for standard gmail users.

  14. Reply November 7, 2015 / 17:19 CharisSiteGround Team

    What is the simple work around for standard gmail users ?
    because i think most of as have same problem. everything work ok until 1st of november

    • Reply November 10, 2015 / 08:47 escalationsSiteGround Team

      Check your gmail settings and verify applications are allowed to connect to your account. You can do this via your google settings section.

  15. Reply November 18, 2015 / 02:58 Jason FoxSiteGround Team

    Hi,

    I had a similar problem as people have been describing above, because of the new 2-factor requirements, I had to generate an app specific password: https://security.google.com/settings/security/apppasswords?pli=1

    More here: https://support.google.com/accounts/troubleshooter/3141849#ts=3202254%2C3202256

    I was getting mail set up for my security DVR just like a poster above. Hope this helps!

    • Reply January 27, 2016 / 18:11 BernardSiteGround Team

      we have a winner!

  16. Reply November 19, 2015 / 00:30 kdySiteGround Team

    i have this working..but the emails come in with a 14 hour earlier time stamp...ive checked time settings every thing looks good, guessing this maybe pulling time on the smtp server...anyone know if it is correctable..?

    • Reply November 20, 2015 / 08:26 Hristo PandjarovSiteGround Team

      That's a Google setting, you should check the options of your email account.

  17. Reply December 10, 2015 / 12:57 MartinSiteGround Team

    This worked for me, but with one huge caveat.

    I am using Contact Form 7 – and even if I do specify another "From" adress, it still takes my gmail-adress as a from-sender. Which is not good.

    How can this be solved? Seems like the Oauth-email overrides the Contact Form 7.
    Even the "Test Email" gives me wrong From-address.

    • Reply December 11, 2015 / 14:03 Hristo PandjarovSiteGround Team

      Please, contact the plugin developers and/or check its documentation for more information on that matter.

  18. Reply December 25, 2015 / 18:35 TaoSiteGround Team

    what's the flow restriction on this smtp relay, i.e. how many emails can it sent per hour/ per day before it triggers spamming alert?

    • Reply December 28, 2015 / 07:12 Hristo PandjarovSiteGround Team

      That's a setting in the Google servers that we don't have access to.

    • Reply January 24, 2016 / 10:38 OliaSiteGround Team

      99 emails a day

  19. Reply January 24, 2016 / 11:38 numirSiteGround Team

    hello
    can i use this server STMP to sendblaster program to send emails ?

    • Reply January 25, 2016 / 07:12 Hristo PandjarovSiteGround Team

      I guess so, if the application supports it.

  20. Reply February 3, 2016 / 21:42 MichaelSiteGround Team

    Gmail accounts aren't authenticating anymore, i think this is their way of forcing users to pay for Googles Apps if they want to relay

    SASL authentication failed; server smtp.gmail.com[74.125.25.109] said: 534-5.7.14 Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 l62sm12044873pfj.7 - gsmtp

    • Reply February 5, 2016 / 08:23 Ivan StefanovSiteGround Team

      Michael, please submit a technical support ticket as we should investigate the issue and check the server logs. I'm pretty positive that the authentication would be successful, once we verify that the connection to smtp.gmail.com could be established for your account.

  21. Reply February 8, 2016 / 13:04 BogdanSiteGround Team

    Hello

    i am trying to use smtp google settings, but my access it is blocked. Each time i try i receive an email with "somebody tried to access using your credentials bla-bla-bla and we have blocked . Please use only accredited app". I just want to use mail.google.com as SMTP, with my user name and password - is this possible?

    • Reply February 9, 2016 / 11:10 Ivan YordanovSiteGround Team

      In order to use the Google STMP service you need to use the details specified in the article:

      Outgoing Mail (SMTP) Server: smtp.gmail.com
      Use Authentication: Yes
      Use Secure Connection: Yes (this can be TLS or SSL depending on your mail client)
      Username: your GMail account, i.e. user@gmail.com
      Password: your GMail password
      Port: 465 or 587

      mail.google.com is rather the link to the GMail, where you shouldn't have any issues with logging in using your Gmail username and password.

      Additionally, Google is sometimes prevents logging from apss that do not meet modern security standards. You can find more information about that in the following article:

      https://support.google.com/accounts/answer/6010255?hl=en&ref_topic=2401957

      and specifically check the information in the section Allowing less secure apps to access your account.

  22. Reply February 8, 2016 / 13:37 tlawford@alum.mit.eduSiteGround Team

    I have just bought domain tomlawford.com from domains.google.com with thomas.lawford as the manager overlord, and an alias of tom. MyThunderbird PC software talks with outgoing.gmail.com (imap) and incoming.gmail.com successfully. gmail is programmed to connect back and forth with my new domain at domains.google.com . Problem: I want all of my outgoing mails passing through this daisy chain to say from: tom@tomlawford.com and not tomsgmailname@tomlawford.com. Zo, I go the portion of gmail where it says "send outgoing mail with" and lets you type in the alias you want, which is tom. Then it wants a password. Presumably this is the password to get into domains.google.com to see if I really own that domain, so I give it the password to domains.google.com . Bzzzzt beulah the buzzer says in red NOPE, and its last words are NXDOMAIN code(0) How do I do this properly ?

    • Reply February 9, 2016 / 11:23 Ivan YordanovSiteGround Team

      The issue is most likely caused by the fact that you are using the password for domains.google.com. In order to rewrite the address you are sending from, you will need to go to Settings -> Accounts tab -> and Add another email you own in the section Send mail as:

      Then, you will be prompted to enter the password of the e-mail account you would like to be preset in the From field, not the password for accessing domains.google.com.

* (Required)