Skip to main content

✨ Awesome email tookit that shines ✨

Project description

pigeomail

A highly efficient and modular mail delivery framework for Python

##Install

pip install pigeomail

How to use

from pigeomail import Message,Mailer


if __name__ == "__main__":
    msg = Message()
    msg.From = "pigeomail"
    msg.To = ["xxx@gmail.com"]
    msg.Cc = []
    msg.Subject = "Hello, pigeomail is a highly efficient and modular mail delivery framework for Python."
    msg.Html = """
        <!DOCTYPE html>
        <html>
        <head>
        <meta charset="utf-8">
        </head>
        <body>
            <h1>Hello world~</h1>
            <p>pigeomail is a highly efficient and modular mail delivery framework for Python.</p>
        </body>
        </html>
    """
    msg.attachments = [
        "test1.jpg",
        "test2.jpg",
    ]

    mailer = Mailer(
        host="xxxx.163.com",
        port=80,
        user="username@163.com",
        pwd="passwd",
    )
    mailer.send(msg)  # just send your message through the mailer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pigeomail-0.0.8.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

pigeomail-0.0.8-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page