You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
You can configure your SMTP server settings using thesmtp_cfgdictionary format shown above. The example uses AWS SES with environmentvariables for credentials.
Provide your email details
from_addr=get_addr('XXX@fastmail.com','Jeremy Howard')to_addrs= [get_addr('douglas@example.com','Douglas Adams'),get_addr('cleese@example.com','John Cleese')]inserts= [{'special':"Thanks for all the fish."}, {'special':"That was a silly walk."}]msg="""## Hello there!Here is your special message: *{special}*"""
Thetest=True parameter prints the messages instead of sending them.
Send your messages
ml.send_msgs()
To: Douglas Adams <douglas@example.com>----------------------------------------## Hello there!Here is your special message: *Thanks for all the fish.*========================================To: John Cleese <cleese@example.com>----------------------------------------## Hello there!Here is your special message: *That was a silly walk.*========================================