lycosa is a python library that allows you to easily manage emails
Project description
lycosa
lycosa is a python library that allows you to easily manage emails
Installation
bash
pip install lycosa
Use
python
from lycosa.sender import EmailClient, Gmail
# Choose the email service : Gmail, Orange
service = Gmail()
# Login credentials
login = "test@gmail.com" # sender email
password = "erfd dfess rftes fres" # application password
# Create a customer
client = EmailClient(service, login, password)
list_files = ["text.txt", "image.png", "doc.pdf"]
html_message = """
<html>
<body>
<h1 style="color:blue;">This is an HTML test!</h1>
<p>Sending an email in <b>HTML</b> with an attachment.</p>
</body>
</html>
"""
txt_message = "This is a test of sending email through my library."
# Send a simple email
result = client.send_email(
to=email_dest,
subject="Hello",
body=html_message,
files=[list_files[0], list_files[1], list_files[2]],
cc=["collaborateur@example.com"],
bcc=["boss@example.com"],
body_type="html"
)
print(result)
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
lycosa-1.0.0.tar.gz
(4.5 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 lycosa-1.0.0.tar.gz.
File metadata
- Download URL: lycosa-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60751716555a723e56f504ea32b31f194125687d635fcef8aa185c3de81940c4
|
|
| MD5 |
e91f9d0660db8447c526fe0a5543e530
|
|
| BLAKE2b-256 |
6e6a4e68673040487cabcef7a57a94607ee44e73ce8ab7c7ed3a8c8a886af039
|
File details
Details for the file lycosa-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lycosa-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acc43f8206926aa9aba5f5e5930153360ca8479814d29d5a00ddfc1fdcb1c2bf
|
|
| MD5 |
110afa8394e3b8268cb12c343d725d6e
|
|
| BLAKE2b-256 |
c80c3709a1ceadfe864baa53be6c65ed5a995dcb31a192b8d99550f462fda0a8
|