Skip to content

Instantly share code, notes, and snippets.

@edward
Created November 6, 2012 22:13
Show Gist options
  • Save edward/4027971 to your computer and use it in GitHub Desktop.
Save edward/4027971 to your computer and use it in GitHub Desktop.
message = <<MESSAGE_END
From: Robot <info@xxxxxxxx.com>
To: Somebody <YOUR@EMAIL.com>
MIME-Version: 1.0
Content-type: text/html
Subject: Analytics
Site analytics
<table cellpadding="10" cellspacing="0" border="1">
<tr><th>site</th><th>day</th><th>week</th><th>month</th></tr>
derps
</table>
MESSAGE_END
pipe = open("|/usr/sbin/sendmail -t", "w")
pipe.write(message)
pipe.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment