> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/build/gmail.md).

# Send mail with Gmail in Duaer

In Duaer, Gmail defaults to Authentication OAuth2, Resource Message, and Operation Send. Email Type defaults to HTML. You need a gmailOAuth2 credential.
## Send a message

1. Create a gmailOAuth2 credential (or switch to Service Account / googleApi in the panel).
2. Search for Gmail, connect it after the previous node, and select that credential.
3. Leave Resource on Message and Operation on Send.
4. Set To, Subject, and Message. Leave Email Type on HTML (or switch to Text).
5. Select Execute step.

Under Message you also get Get, Get Many, Delete, Reply, and Add Labels.

For SMTP, see [Send mail with Send Email in Duaer](/build/send-email.md). To receive mail, see [Receive mail with Email Trigger (IMAP) in Duaer](/build/email-trigger-imap.md).
## Questions

### How is Gmail different from Send Email in Duaer?

Gmail uses a Google account (OAuth2 or Service Account). Send Email uses an SMTP credential and is not tied to Gmail.

## Related

- [Send mail with Send Email in Duaer](https://doc.duaer.com/build/send-email.md)
- [Start on new mail with Email Trigger (IMAP)](https://doc.duaer.com/build/email-trigger-imap.md)
- [Read rows with Google Sheets in Duaer](https://doc.duaer.com/build/google-sheets.md)

