A simplified tool for mailing services
Project description
PyEmailHandler
Receive and Send emails at ease.
Intended for quick and easy projects that does not require specific function other than to receive, send and reply to emails.
Supports:
- IMAP4
- SMTP
Basic Usage:
Send Email
from PyEmailHandler import EmailSMTP
email = EmailSMTP(
username="smtp_username",
password="smtp_password",
sender_mail="sender@example.com",
sender_name="WeSend",
smtp_server="smtp.example.com",
port = 587,
protocol = "starttls"
)
email.start_connection()
email.send(
receiver="recepient@mailaddress.com",
subject="Subject of the e-mail",
body="Content of the e-mail, can be as long as you want"
)
Receive Inbox:
from PyEmailHandler import EmailIMAP
inbox = EmailIMAP(
username="imap_username",
password="imap_password",
imap_server="imap.example.com",
port=993,
protocol="ssl"
)
inbox.start_connection()
mails = inbox.get_mails()
for mail in mails:
print(mail)
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
PyEmailHandler-0.1.0a0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for PyEmailHandler-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26ce54ccc3f2b568d24d0474d37c95bc29b2fe544eaa0d6d386a87ac1e5f48c |
|
MD5 | a597ec83725301c4df255463d668b995 |
|
BLAKE2b-256 | 50a0722458a48c070ff94ed17823db4b3ba33b32a1a68c21ec599f46361a7a35 |