Method
sendEmail POST
Copy POST

Send an email to the specified email address with provided subject and contents.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes email str The email address to send the email to.
Yes subject str The subject of the email.
Yes body str The body of the email.
No isHtml bool Whether the body is html or not.
No attachments dict A dictionary where the key is the filename (including the file extension), and the value is either a file-like object (e.g., an open file in binary mode) or raw file data (e.g., bytes).
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
Language: