20
loading...
This website collects cookies to deliver better user experience
pip install yagmail
sender = yagmail.SMTP(user = 'USERNAME', password = 'PASSWORD')
recipient='[email protected]'
subject="Welcome to devtejas"
contents=["Wake up ziron...", "There is a new post on devtejas"]
sender.send(to=recipient, subject=subject, contents=contents)
recipients=['ziron.gmail.com','[email protected]','[email protected]']
subject="Welcome to devtejas"
contents=["Wake up ziron...", "There is a new post on devtejas"]
sender.send(to=recipients, subject=subject, contents=contents)
recipients=['[email protected]']
subject="Welcome to devtejas"
contents=["Wake up ziron...", "There is a new post on devtejas", 'devtejas.png']
sender.send(to=recipients, subject=subject, contents=contents,
attachments='post.pdf')
recipients=['[email protected]']
subject="Welcome to devtejas"
contents=["Wake up Ziron...", "There is a new post on devtejas", 'devtejas.png']
sender.send(to=recipients, subject=subject, contents=contents,
cc='[email protected]', bcc='[email protected]')