Skip to main content

A simple package to send emails with python

Project description

MyEmail

A simple library to send emails with python

Example

from myemail.myemail import send

sslport = os.getenv("SSLPORT")  # For SSL
password = os.getenv("PASSWORD")
smtpserver = os.getenv("SMTPSERVER")
emailvar = os.getenv("EMAIL")
attachment_path = f"{os.getenv('HOME')}/testfile123.txt"
print(attachment_path)
send(
    msg_content="test",
    from_email=emailvar,
    to_email=emailvar,
    subject="test",
    sslport=sslport,
    password=password,
    attachment_path=attachment_path,
)

Contact

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

myemail-0.7.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

myemail-0.7.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded 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