codebots.bots.emailbot.EmailBot.send_email#

Method

EmailBot.send_email(receiver, subject, body, attachment=None)[source]#

Send an email to an email address.

Parameters:
receiverstr

email address of the receiver

subjectstr

subject of the email

bodystr

body text of the email

attachmentstr, optional

path to the file to attach, by default None