2017-10-30 | Paul Boddie | file changeset files shortlog | Changed the structure of wrapped messages to employ multipart/alternative and to collect calendar system information into a text part rather than the MIME preamble. |
paul@1102 | 1 | #!/usr/bin/env python |
paul@1102 | 2 | |
paul@1102 | 3 | import smtplib |
paul@1102 | 4 | import sys |
paul@1102 | 5 | |
paul@1102 | 6 | sender, recipients = sys.argv[1], sys.argv[2:] |
paul@1102 | 7 | |
paul@1102 | 8 | s = smtplib.SMTP("localhost") |
paul@1102 | 9 | print s.sendmail(sender, recipients, sys.stdin.read()) |