From 3bcdf9487d5e59150bc78471ef145176e9af5b66 Mon Sep 17 00:00:00 2001 From: gemu Date: Wed, 27 Sep 2023 18:36:38 +0200 Subject: [PATCH] fix compile error with new email lib (#19608) --- tasmota/tasmota_xdrv_driver/xdrv_01_2_webserver_esp32_mail.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_2_webserver_esp32_mail.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_2_webserver_esp32_mail.ino index 315d2124f21d..3f26baa0d51b 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_2_webserver_esp32_mail.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_2_webserver_esp32_mail.ino @@ -294,7 +294,9 @@ void attach_File(char *path) { } att.descr.filename = cp; att.descr.mime = "application/octet-stream"; //binary data +#if ESP_MAIL_VERSION_NUM<30409 att.file.storage_type = esp_mail_file_storage_type_univ; +#endif att.descr.transfer_encoding = Content_Transfer_Encoding::enc_base64; email_mptr->addAttachment(att); email_mptr->resetAttachItem(att);