Skip to content

Instantly share code, notes, and snippets.

@zeuxisoo
Created January 6, 2014 15:44
Show Gist options
  • Select an option

  • Save zeuxisoo/8284676 to your computer and use it in GitHub Desktop.

Select an option

Save zeuxisoo/8284676 to your computer and use it in GitHub Desktop.
Test in Mailgun
from mailer import Message, Mailer
m = Message()
m.From=“Name <username@gmail.com>"
m.To=“username+fans@gmail.com"
m.BCC=[‘username@live.hk’,’username2@gmail.com']
m.Subject='Hello world testing'
m.charset="UTF-8"
m.Html = "Testing some things!”
s = Mailer("smtp.mailgun.org", 587, use_tls=True)
s.login('postmaster@mysubdomain.com', ‘password’)
s.send(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment