How to save any mail over gmail withou pdf

There are a few ways to save emails from Gmail without converting them to a PDF:

  1. Forward the email: You can forward the email to yourself or another email address, and then save the forwarded email as a separate email in your inbox.
  2. Use the "Print" feature: Gmail has a built-in "Print" feature that allows you to save an email as an HTML file. To do this:
    • Open the email you want to save.
    • Click on the three vertical dots at the top right corner of the email.
    • Select "Print" from the dropdown menu.
    • In the print preview window, select "Save as HTML" from the "Destination" dropdown menu.
    • Choose a location to save the file and give it a name.
  3. Use a browser extension: There are several browser extensions available that allow you to save emails from Gmail as HTML files. Some popular options include:
    • Email Hunter: This extension allows you to save emails as HTML files, as well as extract contact information and attachments.
    • Email Saver: This extension allows you to save emails as HTML files, as well as convert them to PDF or TXT files.
    • Gmail Save: This extension allows you to save emails as HTML files, as well as convert them to PDF or TXT files.
  4. Use a third-party service: There are several third-party services available that allow you to save emails from Gmail as HTML files. Some popular options include:
    • Email2HTML: This service allows you to save emails as HTML files, as well as convert them to PDF or TXT files.
    • Save Email: This service allows you to save emails as HTML files, as well as convert them to PDF or TXT files.

To use these services, you'll need to install a browser extension or add a bookmarklet to your browser. Then, you can use the extension or bookmarklet to save the email as an HTML file.

  1. Use a script: If you're comfortable with coding, you can use a script to save emails from Gmail as HTML files. For example, you can use a Python script that uses the Gmail API to retrieve the email and then saves it as an HTML file.

Here's an example of how you might use a Python script to save an email as an HTML file:

import requests
import json

# Set your Gmail API credentials
client_id = "your_client_id"
client_secret = "your_client_secret"
refresh_token = "your_refresh_token"

# Set the email you want to save
email_id = "the_email_id"

# Use the Gmail API to retrieve the email
url = "https://www.googleapis.com/gmail/v1/users/me/messages"
headers = {
    "Authorization": "Bearer " + refresh_token,
    "Content-Type": "application/json"
}
params = {
    "id": email_id
}
response = requests.get(url, headers=headers, params=params)

# Parse the response as JSON
data = json.loads(response.text)

# Extract the email body and save it as an HTML file
body = data["payload"]["body"]["text"]
with open("email.html", "w") as f:
    f.write("<html><body>" + body + "</body></html>")

This script uses the Gmail API to retrieve the email, and then saves the email body as an HTML file. You'll need to modify the script to suit your specific needs and to handle any errors that may occur.