---
title: "Discussion on \"Send HTML mail with Gmail API\" | Hashnode"
description: "Discussion on \"Send HTML mail with Gmail API\". Again, TLDR; to send a HTML formatted text via gmail API, what you need is just a simple 'html' word to the MIMEText(). Here is the sample from the google developer site itself:\nimport base64\nfrom email.mime.text import MIMEText\n.....\ndef create_mess..."
url: "https://hashnode.com/posts/send-html-mail-with-gmail-api/5fad408afa438d6532c7e1d8"
---

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

Discussion

# [Send HTML mail with Gmail API](https://solie.ml/send-html-mail-with-gmail-api?utm_source=hashnode&utm_medium=feed)

Again, TLDR; to send a HTML formatted text via gmail API, what you need is just a simple 'html' word to the MIMEText(). Here is the sample from the google developer site itself: import base64 from email.mime.text import MIMEText ..... def create\_mess...

Nov 12, 2020 · 1 min read · solie.ml  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#gmail](https://hashnode.com/tag/gmail)
-   [#html](https://hashnode.com/tag/html)
-   [#api](https://hashnode.com/tag/api)

## Written by

[maz solie](https://hashnode.com/@solie)

@solie · taipei, taiwan

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
