Wiki › Project
pymail
Article
ReadAll pages
From Chaipat's knowledge graph
pymail is a Python script that sends email through Gmail's SMTP server, either plain text or HTML. The sender's address and password, or a Gmail app password when two-step verification is on, come from a .env file. The recipient also comes from the environment, and the message body is read from a file, so the same script can send any template, such as the included payload.html.