summaryrefslogtreecommitdiff
path: root/webdo.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-02-23 19:54:06 +0100
committerhorchi <vdr@jwendel.de>2018-02-23 19:54:06 +0100
commit4689afc6a28406be919f875e60935d0126c15f35 (patch)
treea341d9e9a71a9f84c209516a033c0b4008acddaf /webdo.c
parentb2fb1c3c3b33ce7d7e4e88e02f29bb6aabad5d00 (diff)
downloadvdr-epg-daemon-4689afc6a28406be919f875e60935d0126c15f35.tar.gz
vdr-epg-daemon-4689afc6a28406be919f875e60935d0126c15f35.tar.bz2
minor change
Diffstat (limited to 'webdo.c')
-rw-r--r--webdo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/webdo.c b/webdo.c
index 8374f34..a07deb1 100644
--- a/webdo.c
+++ b/webdo.c
@@ -1831,6 +1831,9 @@ int cEpgHttpd::doSendMail(json_t* jInData, json_t* response)
const char* subject = getStringFromJson(jInData, "subject", "test");
const char* mimeType = getStringFromJson(jInData, "mimetype", "text/plain");
+ if (isEmpty(mimeType))
+ mimeType = "text/plain";
+
getParameter("epgd", "mailScript", mailScript);
if (isEmpty(mailScript))
@@ -1841,7 +1844,7 @@ int cEpgHttpd::doSendMail(json_t* jInData, json_t* response)
// send HTML mail
- tell(0, "Send mail '%s' with [%s] to '%s'", subject, body, receiver);
+ tell(0, "Send mail '%s' with [%s] to '%s' (%s)", subject, body, receiver, mimeType);
asprintf(&command, "%s '%s' '%s' '%s' %s", mailScript,
subject, body, mimeType, receiver);