outgoing.mit.edu requires this.
svn path=/trunk/packages/invirt-web/; revision=1718
%s
""" % (to, config.web.hostname, subject, body)
%s
""" % (to, config.web.hostname, subject, body)
- p = subprocess.Popen(['/usr/sbin/sendmail', to], stdin=subprocess.PIPE)
+ p = subprocess.Popen(['/usr/sbin/sendmail', '-f', to, to],
+ stdin=subprocess.PIPE)
p.stdin.write(mail)
p.stdin.close()
p.wait()
p.stdin.write(mail)
p.stdin.close()
p.wait()