API Refernce¶
The following contents outlines the API of instantmailer.
Mail¶
-
class
instantmailer.
Mail
(mail, password)[source]¶ Base Class for the module. You can send emails with attachments
Parameters: - mail – The actual mail you are going to send using :class: Mail
- password – The given mail account password
-
send
(reciever, body, subject=None, bcc=None, attachment_name=None, attachment_bytes=None)[source] Sends the email
Parameters: - reciever – The recievers mail address
- body – The body of the mail
- subject – The subject of the mail
- bcc – The bcc of the mail
- attachment_name – The name of the attachment
- attachment_bytes – The bytes of the attachment