mirror of https://github.com/zulip/zulip.git
review: Send mail using msmtp
(imported from commit 7cf60baeb846df9a8c15500a6d14713aec45fc8c)
This commit is contained in:
parent
5788c4c280
commit
8c238f252c
|
@ -292,7 +292,7 @@ def main(args):
|
|||
print >>sys.stdout
|
||||
print >>sys.stdout, msg.get_payload(decode=True),
|
||||
else:
|
||||
subprocess.Popen(['/usr/sbin/sendmail', '-bm', '-t'],
|
||||
subprocess.Popen(['msmtp', '-t'],
|
||||
stdin=subprocess.PIPE).communicate(msg.as_string())
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue