Menu

pycaravel: This module is designed to simplify continuous integration (CI) of data from multiple projects.

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.

class caravel.mail.EmailManager(smtp_host, smtp_port)[source]

Define a class to simplify emails sending.

Initialize the EmailManager class.

Parameters:

smtp_host : str

the SMTP host.

smtp_port : str

the SMTP port.

send_mail(to_addrs, subject, body, from_addr='noreply@cea.fr', files=None)[source]

Send an email.

Parameters:

to_addrs : list of str

the destination emails

subject : str

the subject of the email.

body : str

the body of the email.

from_addr : str, default ‘noreply@cea.fr

the sender email.

files : list of str default None

a list of files to be attached.

Follow us

© 2025, Antoine Grigis