提交 77cb98e8 authored 作者: Anthony Minessale's avatar Anthony Minessale

allow templates to contain mime encoded messages

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6419 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a05c09a6
......@@ -176,7 +176,11 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to, const char *fr
return SWITCH_FALSE;
if (file) {
snprintf(buf, B64BUFFLEN, "--%s\nContent-Type: text/plain\n\n", bound);
if (body && switch_stristr("content-type", body)) {
snprintf(buf, B64BUFFLEN, "--%s\n", bound);
} else {
snprintf(buf, B64BUFFLEN, "--%s\nContent-Type: text/plain\n\n", bound);
}
if (!write_buf(fd, buf))
return SWITCH_FALSE;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论