diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-02-27 11:54:36 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-02-28 13:45:30 +0300 |
commit | a3f13ee0a0388c061b8f35e0375dd89282a55cd6 (patch) | |
tree | 85201ef92b78a863e7efc97b01b58ea703e0b13d /include/zbxmedia.h | |
parent | 3e5b08e5b64c4b9203b563ee9a74df619bcc3d51 (diff) |
........S. [ZBXNEXT-6478] added support for pre-formatted multipart/mixed email messages
Diffstat (limited to 'include/zbxmedia.h')
-rw-r--r-- | include/zbxmedia.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/zbxmedia.h b/include/zbxmedia.h index 763e457d3c7..fb5dd773836 100644 --- a/include/zbxmedia.h +++ b/include/zbxmedia.h @@ -24,6 +24,7 @@ #define ZBX_MEDIA_CONTENT_TYPE_TEXT 0 #define ZBX_MEDIA_CONTENT_TYPE_HTML 1 +#define ZBX_MEDIA_CONTENT_TYPE_MULTI 2 /* multipart/mixed message with pre-formatted message body */ extern char *CONFIG_SOURCE_IP; @@ -41,4 +42,7 @@ int send_email(const char *smtp_server, unsigned short smtp_port, const char *sm unsigned char content_type, int timeout, char *error, size_t max_error_len); int send_sms(const char *device, const char *number, const char *message, char *error, int max_error_len); +char *zbx_email_make_body(const char *message, unsigned char content_type, const char *attachment, + size_t attachment_size, const char *attachment_type, const char *attachment_name); + #endif |