Metadata-Version: 2.4
Name: lycosa
Version: 1.0.0
Summary: lycosa is a python library that allows you to easily manage emails
Home-page: https://github.com/Tina-1300/lycosa
Author: Tina
Author-email: tina.xytrfgthuji1348@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Communications :: Email
Requires-Python: >=3.13.0
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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) 
```


## 
