summaryrefslogtreecommitdiff
path: root/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail.c')
-rw-r--r--mail.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail.c b/mail.c
index 087cab1..e7cb2b6 100644
--- a/mail.c
+++ b/mail.c
@@ -31,6 +31,10 @@ The project's page is at http://winni.vdr-developer.org/epgsearch
#include "epgsearchtools.h"
#include "uservars.h"
+#ifndef SENDMAIL
+#define SENDMAIL "/usr/sbin/sendmail"
+#endif
+
extern bool isUTF8;
using namespace std;
@@ -130,7 +134,7 @@ bool cMailNotifier::SendMailViaSendmail()
{
char mailcmd[256];
const char* mailargs = "%s -i -FVDR -oem %s";
- const char* mailproc = "/usr/lib/sendmail";
+ const char* mailproc = SENDMAIL;
FILE* mail;
string to = EPGSearchConfig.MailAddressTo;