Skip to content

Instantly share code, notes, and snippets.

@frankyxhl
frankyxhl / zoho_send_email.py
Last active October 12, 2025 18:41
Python script to send email by zoho.com's mail service
# Code from best solution in page below:
# https://help.zoho.com/portal/community/topic/zoho-mail-servers-reject-python-smtp-module-communications
import smtplib
from email.mime.text import MIMEText
from email.header import Header
from email.utils import formataddr
# Define to/from
sender = 'sender@example.com'