Handler EMail-Sender#

Handler EMail-Sender: Send bot-data#

Module for sending EMail

class handler_email_sender.SenderEmail[source]#

Class for send email.

async static get_email_data_admin(file_path='bot.json')[source]#

Get EMail-data of admin email.

Parameters:

file_path – File path.

Returns:

Dict with data.

Return type:

dict

async static send_check_email_temp_code(receiver_email, subject, name, code)[source]#

Func for send email.

Parameters:
  • receiver_email (str) – Receiver email.

  • subject (str) – Subject of email.

  • name (str) – Name.

  • code (str) – Temp ver. code.

Returns:

Result of sending.

Return type:

tuple

async static send_others_ticket_data_in_email_format(receiver_email, subject, name, file_path='ticket_data_from_manager_cw_bot.pdf')[source]#

Func for send email.

Parameters:
  • receiver_email (str) – Receiver email.

  • subject (str) – Subject of email.

  • name (str) – Name.

  • file_path – File path.

Returns:

Result of sending.

Return type:

tuple

async static send_receipt_refund_to_user_in_email_format(receiver_email, subject, name, file_path='receipt_refund_data_from_manager_cw_bot.pdf')[source]#

Func for send email.

Parameters:
  • receiver_email (str) – Receiver email.

  • subject (str) – Subject of email.

  • name (str) – Name.

  • file_path – File path.

Returns:

Result of sending.

Return type:

tuple

async static send_receipt_to_user_in_email_format(receiver_email, subject, name, file_path='receipt_data_from_manager_cw_bot.pdf')[source]#

Func for send email.

Parameters:
  • receiver_email (str) – Receiver email.

  • subject (str) – Subject of email.

  • name (str) – Name.

  • file_path – File path.

Returns:

Result of sending.

Return type:

tuple