File: sendmail.py

package info (click to toggle)
imip-agent 0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,056 kB
  • sloc: python: 9,888; sh: 4,480; sql: 144; makefile: 8
file content (9 lines) | stat: -rwxr-xr-x 183 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python

import smtplib
import sys

sender, recipients = sys.argv[1], sys.argv[2:]

s = smtplib.SMTP("localhost")
print s.sendmail(sender, recipients, sys.stdin.read())