Skip to content

Instantly share code, notes, and snippets.

@markbirbeck
Created May 19, 2011 14:17
Show Gist options
  • Save markbirbeck/980836 to your computer and use it in GitHub Desktop.
Save markbirbeck/980836 to your computer and use it in GitHub Desktop.
Troubleshooting sendmail: Python
import smtplib
server = smtplib.SMTP('localhost')
server.sendmail('admin@levelbusiness.com', 'mark.birbeck@gmail.com', 'Hello mum!')
server.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment