diff options
author | horchi <vdr@jwendel.de> | 2018-02-23 19:54:06 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-23 19:54:06 +0100 |
commit | 4689afc6a28406be919f875e60935d0126c15f35 (patch) | |
tree | a341d9e9a71a9f84c209516a033c0b4008acddaf /webdo.c | |
parent | b2fb1c3c3b33ce7d7e4e88e02f29bb6aabad5d00 (diff) | |
download | vdr-epg-daemon-4689afc6a28406be919f875e60935d0126c15f35.tar.gz vdr-epg-daemon-4689afc6a28406be919f875e60935d0126c15f35.tar.bz2 |
minor change
Diffstat (limited to 'webdo.c')
-rw-r--r-- | webdo.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |