tools/sendmail.py | raw changeset files shortlog | freebusy-collections |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/sendmail.py Sun Apr 03 23:21:31 2016 +0200 1.3 @@ -0,0 +1,9 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +import smtplib 1.7 +import sys 1.8 + 1.9 +sender, recipients = sys.argv[1], sys.argv[2:] 1.10 + 1.11 +s = smtplib.SMTP("localhost") 1.12 +print s.sendmail(sender, recipients, sys.stdin.read())