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
import os
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
Release history Release notifications | RSS feed
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.9.0.tar.gz
(2.2 kB
view hashes)