How to Use the Gmail SMTP Server to Send Emails for Free

This article will be instructions on how you can make your personal Google Gmail account into an SMTP server. For us developers, this is great, because we can use this feature to send out emails from our application(s) without being blocked by our system administrators or other internal team blockers. But keep in mind, this will only allow us to send out 500 emails per day, but that should be enough right?

Before we get started, I would recommend that you’d use a Google account that is meant for your development efforts. Because once you configure your account to send out emails as an SMTP server, your account will be vulnerable, learn more (Google external link).

Alert!
In order for us to be able to send out emails, your Google account must be configuration to Authorize access. If this step has already been done, skip to link #2.

  1. Authorize access to your Google account
  2. Configuration for your Application Server

1. Authorize access to your Google account

Step 1. Login to your Google Account.
Once you have logged into your account, click on the security link on the sidebar navigation. Click here for direct access.
step 1: this screenshot indicates to the participant to click on the security link button; click it.

Step 2. Scroll to around the bottom of the page and click on the “Turn off access (recommended)”, to navigate to the configuration page. Click here for direct access.
step 2: this screenshot indicates to the participant to scroll down near the bottom of the page to access the Turn off access (recommended) link; click it.

Step 3. In the Less secure app access page, toggle the Allow less secure apps option.
step 3: this screenshot indicates to the participant to toggle and enable the Allow less secure apps option.

Reminder
Please remember that once this, Allow less secure apps option, has been enabled, it will make your account vulnerable. Make sure you use a disposable account for this.

Once the Allow less secure apps option is enabled, you can start sending out emails using your Google account as the SMTP mail server. Skip to step 2 to configuration for your application server.


2. Configuration for your Application Server

Once you have authorized access to your Google account, you are set, use the configuration below, and you should be able to start sending free emails from your Google Gmail account!

Google SMTP Configurations
SMTP server hostname: smtp.gmail.com
SMTP server port: 465, 25 or 587 (test in that order)
SMTP user: contact@sourcedcode.com
SMTP password: p4ssw0rd (this password is the password of your email address)
SMTP TLS/SSL: true

Hello, I am an enthusiastic Adobe Community Advisor and a seasoned Lead AEM Developer. I am currently serving as an AEM Technical Lead at MNPDigital.ca, bringing over a decade of extensive web engineering experience and more than eight years of practical AEM experience to the table. My goal is to give back to the AEM Full Stack Development community by sharing my wealth of knowledge with others. You can connect with me on LinkedIn.

Leave a Reply

Your email address will not be published. Required fields are marked *