Skip to main content

send_email

Send an email to one or more recipients.

Parameters

NameDescriptionTypeDefault
to (required)Email address(es) of the recipient(s). Can be a single email address as a string or multiple addresses as a list of strings.Union[str, List[str]]None
message (required)Content of the email message.strNone
titleSubject line of the email. Defaults to "".str''
attachmentsList of attachments to include. Each attachment can be a file path string or an open file-like object. Defaults to [].List[Union[str, io.IOBase]][]
is_htmlWhether the message content is HTML. When True, the message will be sent as HTML; when False, the message will be sent as plain text. Defaults to False.boolFalse