fix email32 file system (#20603)

* fix file system

* fix email attachments

* Update MB_FS.h
This commit is contained in:
gemu 2024-01-27 09:06:41 +01:00 committed by GitHub
parent 908a918b8e
commit 04bb28bc20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1230 additions and 873 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -296,6 +296,8 @@ void attach_File(char *path) {
att.descr.mime = "application/octet-stream"; //binary data
#if ESP_MAIL_VERSION_NUM<30409
att.file.storage_type = esp_mail_file_storage_type_univ;
#else
att.file.storage_type = esp_mail_file_storage_type_flash;
#endif
att.descr.transfer_encoding = Content_Transfer_Encoding::enc_base64;
email_mptr->addAttachment(att);