Signed-off-by: Dmitry Bogatov <KAction@gnu.org>
'sending message to {} via /usr/sbin/sendmail'.format(recipient))
try:
p = _subprocess.Popen(
'sending message to {} via /usr/sbin/sendmail'.format(recipient))
try:
p = _subprocess.Popen(
- ['/usr/sbin/sendmail', recipient],
+ ['/usr/sbin/sendmail', '-f', sender, recipient],
stdin=_subprocess.PIPE, stdout=_subprocess.PIPE,
stderr=_subprocess.PIPE)
stdout,stderr = p.communicate(message.as_string()
stdin=_subprocess.PIPE, stdout=_subprocess.PIPE,
stderr=_subprocess.PIPE)
stdout,stderr = p.communicate(message.as_string()