Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def send_email(recipient, content, cc):
  2. outlook = win32.Dispatch('outlook.application')
  3. mail = outlook.CreateItem(0)
  4. mail.To = recipient
  5. mail.Subject = content[0]
  6. mail.HTMLBody = content[1]
  7. mail.CC = cc
  8. mail.Send()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement