fix compile error with new email lib (#19608)

This commit is contained in:
gemu 2023-09-27 18:36:38 +02:00 committed by GitHub
parent 955d2d86dd
commit 3bcdf9487d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -294,7 +294,9 @@ void attach_File(char *path) {
} }
att.descr.filename = cp; att.descr.filename = cp;
att.descr.mime = "application/octet-stream"; //binary data att.descr.mime = "application/octet-stream"; //binary data
#if ESP_MAIL_VERSION_NUM<30409
att.file.storage_type = esp_mail_file_storage_type_univ; att.file.storage_type = esp_mail_file_storage_type_univ;
#endif
att.descr.transfer_encoding = Content_Transfer_Encoding::enc_base64; att.descr.transfer_encoding = Content_Transfer_Encoding::enc_base64;
email_mptr->addAttachment(att); email_mptr->addAttachment(att);
email_mptr->resetAttachItem(att); email_mptr->resetAttachItem(att);