A python email sender library
Project description
Emaileasily is a python package that simplifies the process of sending emails.
Installation
pip install emaileasily
Usage
>>> from emaileasily import email_to, email_subject, email_content, email_send
# Accepts more than one email address eg email_to('example.gmail.com', 'example5@gmail.com').
>>> email_to('example.gmail.com')
'example.gmail.com'
>>> email_subject('Python Email')
'Python Email'
>>> email_content('This is an example of sending emails with emaileasily')
# email_send() takes sender address and password as key arguments.
# The functions also takes email host and port as optional arguments.
# Default host="smtp.gmail.com" and port=465
>>> email_send('sender@gmail.com', 'password')
Email successfully sent.
Send html email
>>> from emaileasily import email_html
>>> email_html('''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<h3>Message</h3>
<p> Hello this is a html email.</p>
<a href='#'>Click here</a>
</body>
</html>
''')
Add email bcc and cc
>>> from emaileasily import email_bcc, email_cc
# Accepts more than one email address.
>>> email_bcc('example2@gmail.com')
>>> email_cc('example3@gmail.com')
Attach Documents
>>> from emaileasily import email_attach_document
# Calling the functions gives you the option to select documents for attachment.
>>> email_attach_document()
View all sent emails
>>> from emaileasily import emails_sent
# List all sent emails.
# The emails can be viewed manually by opening the directory's messages.txt file.
>>> emails_sent()
View the last email
>>> from emaileasily import get_last_sent_email
>>> get_last_sent_email()
View the last five emails
>>> from emaileasily import get_last_five_sent_emails
>>> get_last_five_sent_emails()
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
emaileasily-0.0.3.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emaileasily-0.0.3.tar.gz.
File metadata
- Download URL: emaileasily-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6d16a9d74e2fab36e9ea25578f16b48419e267dff2ad725c74fc1be3beb1689
|
|
| MD5 |
93ba0994cd8419abd3e90dc8bf01af97
|
|
| BLAKE2b-256 |
f0f5a4323efc584f537ecb18606c172bf8feaa65a2f4d76fc5909f26db1b0233
|
File details
Details for the file emaileasily-0.0.3-py3-none-any.whl.
File metadata
- Download URL: emaileasily-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a009b64c10ef2c3027e67302036895b9d176eacb24abaee096352fbed60cc172
|
|
| MD5 |
c03ef6d197f988949b4d486d2bd8493b
|
|
| BLAKE2b-256 |
3f234286191a6187dbb6d52ec074e13b06781a767a92098b47f64784eead4978
|