Skip to content

Commit

Permalink
add email example
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-jn committed May 29, 2021
1 parent 4a1c146 commit 95577c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/email_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from notipyer.email_notify import set_email_config, send_email

SENDER_EMAIL = '[email protected]'
SENDER_PASS = 'password'
set_email_config(SENDER_EMAIL, SENDER_PASS)

subject = 'My Email Subject'
body = 'My Email Body'
to_recipients = ['[email protected]', '[email protected]']
cc_recipients = ['[email protected]', '[email protected]']
bcc_recipients = ['[email protected]', '[email protected]']

send_email(subject, body, to_recipients, cc_recipients, bcc_recipients)

0 comments on commit 95577c2

Please sign in to comment.