From 6cef11c63cff4d8e3552978e52f89aeba5c62801 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 12 Dec 2011 16:01:45 +0100 Subject: [PATCH] Use a fully qualified path to the sendmail binary For some reason, it appears to work fine without it when used from inside django, but fails when the cronjobs use the same function. --- pgweb/util/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/util/misc.py b/pgweb/util/misc.py index cac1a7d6..656d1f11 100644 --- a/pgweb/util/misc.py +++ b/pgweb/util/misc.py @@ -6,7 +6,7 @@ from django.conf import settings from pgweb.util.helpers import template_to_string def sendmail(msg): - pipe = Popen("sendmail -t", shell=True, stdin=PIPE).stdin + pipe = Popen("/usr/sbin/sendmail -t", shell=True, stdin=PIPE).stdin pipe.write(msg.as_string()) pipe.close() -- 2.39.5