---
title: "Discussion on \"How To Send Emails Using Nest.js, Nodemailer, SMTP, Gmail, and OAuth2\" | Hashnode"
description: "Discussion on \"How To Send Emails Using Nest.js, Nodemailer, SMTP, Gmail, and OAuth2\". Sending emails with Gmail API used to be much less of a hassle with the not-too-good old \"enable less secure app access\" of Google account settings which allow the use of a Gmail username and password to authenticate Gmail API for sending emails, it'..."
url: "https://hashnode.com/posts/how-to-send-emails-using-nestjs-nodemailer-smtp-gmail-and-oauth2/63ea4fd58accaf34fe0c72e6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Send Emails Using Nest.js, Nodemailer, SMTP, Gmail, and OAuth2](https://iamstarcode.hashnode.dev/how-to-send-emails-using-nestjs-nodemailer-smtp-gmail-and-oauth2?utm_source=hashnode&utm_medium=feed)

Sending emails with Gmail API used to be much less of a hassle with the not-too-good old "enable less secure app access" of Google account settings which allow the use of a Gmail username and password to authenticate Gmail API for sending emails, it'...

Feb 13, 2023 · 8 min read · iamstarcode.hashnode.dev  
Read the article

-   [#nestjs](https://hashnode.com/tag/nestjs)
-   [#gmail](https://hashnode.com/tag/gmail)
-   [#smtp](https://hashnode.com/tag/smtp)
-   [#oauth2](https://hashnode.com/tag/oauth2)

## Written by

[Abiola Bakare](https://hashnode.com/@iamstarcode)

@iamstarcode

  
[View profile](https://hashnode.com/@iamstarcode)

## Responses 1

Markdown supported · ⌘↵ to post

[Ofuzor Chukwuemeke](https://hashnode.com/@chukwuemeke)

[Jul 17, 2023](https://hashnode.com/posts/how-to-send-emails-using-nestjs-nodemailer-smtp-gmail-and-oauth2/63ea4fd58accaf34fe0c72e6/comment/64b57e78363658aaa27f1be9)

Nice One , really helpfu

[Abiola Bakare](https://hashnode.com/@iamstarcode)

[Oct 16, 2023](https://hashnode.com/posts/how-to-send-emails-using-nestjs-nodemailer-smtp-gmail-and-oauth2/63ea4fd58accaf34fe0c72e6/comment/64b57e78363658aaa27f1be9#reply-652d2dc0fb41681f08fb2801)

You welcome
