Object for send mail
Connect to smtp-server and create session
Terminate session
Create session with login/password
Send email.
-
Parameters
-
message (str*, *optional) – Text body of message.
-
from_addr (str*, *optional) – the address sending this mail.
-
to_addrs (str*, list(str)**, *optional) – addresses to send this mail to.
-
subject (str*, *optional) – subject of the mail.
-
attach (bytes*, str, tuple, *optional) – file to send.
-
filename (str*, *optional) – filename for attached file.
-
Client of telegram
Send file.
-
Parameters
-
attach (bytes*, str, *tuple) – file to send. if tuple, then (‘filename.txt’, b’text of file’).
-
msg (str*, *optional) – text of message.
-
filename (str*, *optional) – filename if attach is string or bytes.
-
disable_notification (bool) – True to disable notification of message.
-
-
Return type
None
Send message.
-
Parameters
-
msg (str) – text of message.
-
disable_notification (bool) – True to disable notification of message.
-
disable_web_page_preview (bool) – True to disable web preview for links.
-
-
Return type
None
Bases: easy_notifyer.clients.telegram.TelegramBase
Async client for telegram
Send file.
-
Parameters
-
attach (bytes*, str, *tuple) – file to send. if tuple, then (‘filename.txt’, b’text of file’).
-
msg (str*, *optional) – text of message.
-
filename (str*, *optional) – filename if attach is string or bytes.
-
disable_notification (bool) – True to disable notification of message.
-
-
Return type
None
Send message.
-
Parameters
-
msg (str) – text of message.
-
disable_notification (bool) – True to disable notification of message.
-
disable_web_page_preview (bool) – True to disable web preview for links.
-
-
Return type
None