From a1b2aca71b8e72d284a2f3200f515377e6590117 Mon Sep 17 00:00:00 2001 From: Renzo Mischianti Date: Fri, 13 Jan 2023 10:31:55 +0100 Subject: [PATCH] v3.0.9 Fix external storage error 404 https://www.mischianti.org/forums/topic/email-with-sd-files/ --- EMailSender.cpp | 8 ++++---- EMailSender.h | 2 +- EMailSenderKey.h | 2 +- README.md | 1 + library.json | 2 +- library.properties | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/EMailSender.cpp b/EMailSender.cpp index 4a99ff6..6642d99 100644 --- a/EMailSender.cpp +++ b/EMailSender.cpp @@ -2,7 +2,7 @@ * EMail Sender Arduino, esp8266, stm32 and esp32 library to send email * * AUTHOR: Renzo Mischianti - * VERSION: 3.0.8 + * VERSION: 3.0.9 * * https://www.mischianti.org/ * @@ -816,8 +816,8 @@ EMailSender::Response EMailSender::send(const char* to[], byte sizeOfTo, byte s DEBUG_PRINT(F("Readed filename: ")); DEBUG_PRINTLN(attachments.fileDescriptor[i].filename); - DEBUG_PRINT(F("Check if exist: ")); - DEBUG_PRINTLN(INTERNAL_STORAGE_CLASS.exists(attachments.fileDescriptor[i].url.c_str())); +// DEBUG_PRINT(F("Check if exist: ")); +// DEBUG_PRINTLN(INTERNAL_STORAGE_CLASS.exists(attachments.fileDescriptor[i].url.c_str())); int clientCount = 0; @@ -863,7 +863,6 @@ EMailSender::Response EMailSender::send(const char* to[], byte sizeOfTo, byte s spiffsActive = true; DEBUG_PRINTLN("SPIFFS BEGIN, ACTIVE"); } // Close INTERNAL_STORAGE_CLASS.exists - } // Close storageType #endif @@ -896,6 +895,7 @@ EMailSender::Response EMailSender::send(const char* to[], byte sizeOfTo, byte s return response; } // Close myfile + } // Close storageType #endif #ifdef STORAGE_EXTERNAL_ENABLED diff --git a/EMailSender.h b/EMailSender.h index b1a9ce6..1b41b7e 100644 --- a/EMailSender.h +++ b/EMailSender.h @@ -2,7 +2,7 @@ * EMail Sender Arduino, esp8266, stm32 and esp32 library to send email * * AUTHOR: Renzo Mischianti - * VERSION: 3.0.8 + * VERSION: 3.0.9 * * https://www.mischianti.org/ * diff --git a/EMailSenderKey.h b/EMailSenderKey.h index e881611..75b8882 100644 --- a/EMailSenderKey.h +++ b/EMailSenderKey.h @@ -2,7 +2,7 @@ * EMail Sender Arduino, esp8266, stm32 and esp32 library to send email * * AUTHOR: Renzo Mischianti - * VERSION: 3.0.8 + * VERSION: 3.0.9 * * https://www.mischianti.org/ * diff --git a/README.md b/README.md index 34dc5e3..efea70a 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Arduino (support W5100 like must be set, and ENC28J60 via UIPEthernet), esp8266 #### [Inviare email con allegati (libreria v2.x): esp32 e esp8266](https://www.mischianti.org/it/2020/06/16/inviare-email-con-allegati-libreria-v2-x-esp32-e-esp8266-part-2/) ## Change log + - 13/01/2023: v3.0.9 Fix external storage error 404 ([#forum](https://www.mischianti.org/forums/topic/email-with-sd-files/) - 05/01/2023: v3.0.8 Fix distribution list examples - 22/09/2022: v3.0.7 Add Raspberry Pi Pico W and rp2040 boards - 20/09/2022: v3.0.7 Add STM32 management for https://github.com/rogerclarkmelbourne/Arduino_STM32 library. diff --git a/library.json b/library.json index bf2a09d..2d0f916 100644 --- a/library.json +++ b/library.json @@ -16,6 +16,6 @@ }, "url": "https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/", "frameworks": "Arduino", - "version": "3.0.8", + "version": "3.0.9", "platforms": "*" } diff --git a/library.properties b/library.properties index c2bbdf8..2a5ec91 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=EMailSender -version=3.0.8 +version=3.0.9 author=Renzo Mischianti maintainer=Renzo Mischianti sentence=Send EMail via SMTP, library for Raspberry Pi Pico W, Arduino, SAMD (WiFiNINA), STM32, esp8266 and esp32.