Skip to content
Snippets Groups Projects
Commit 9f7768fc authored by Florent Thiery's avatar Florent Thiery
Browse files

force full path for sendmail

parent 9fe75f99
No related branches found
No related tags found
No related merge requests found
...@@ -394,7 +394,7 @@ Content-transfer-encoding: utf-8 ...@@ -394,7 +394,7 @@ Content-transfer-encoding: utf-8
system_domain=system_domain, system_domain=system_domain,
system_type=system_type, system_type=system_type,
) )
p = subprocess.Popen(['sendmail', '-t'], stdin=subprocess.PIPE, stdout=sys.stdout.stream, stderr=sys.stderr.stream) p = subprocess.Popen(['/usr/sbin/sendmail', '-t'], stdin=subprocess.PIPE, stdout=sys.stdout.stream, stderr=sys.stderr.stream)
p.communicate(input=mail.encode('utf-8')) p.communicate(input=mail.encode('utf-8'))
if p.returncode != 0: if p.returncode != 0:
log('Failed to send email.') log('Failed to send email.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment