diff --git a/EMailSender.cpp b/EMailSender.cpp index aa7b4ef..95fac32 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.10 + * VERSION: 3.0.11 * * https://www.mischianti.org/ * diff --git a/EMailSender.h b/EMailSender.h index 4264fa3..639506f 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.10 + * VERSION: 3.0.11 * * https://www.mischianti.org/ * @@ -165,6 +165,13 @@ #define EMAIL_NETWORK_CLASS EthernetClient #define EMAIL_NETWORK_SERVER_CLASS EthernetServer +#elif(EMAIL_NETWORK_TYPE == NETWORK_ETHERNET_GENERIC) + +#include +#include +#define EMAIL_NETWORK_CLASS EthernetClient +#define EMAIL_NETWORK_SERVER_CLASS EthernetServer + #elif(EMAIL_NETWORK_TYPE == NETWORK_ENC28J60 || EMAIL_NETWORK_TYPE == NETWORK_UIPETHERNET) #include diff --git a/EMailSenderKey.h b/EMailSenderKey.h index 4f94a73..870355d 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.10 + * VERSION: 3.0.11 * * https://www.mischianti.org/ * @@ -61,6 +61,7 @@ #define NETWORK_ESP8266 (1) #define NETWORK_ESP8266_242 (6) #define NETWORK_W5100 (2) +#define NETWORK_ETHERNET (2) // Standard Arduino Ethernet library #define NETWORK_ENC28J60 (3) #define NETWORK_ESP32 (4) #define NETWORK_RP2040_WIFI (4) @@ -71,6 +72,7 @@ #define NETWORK_ETHERNET_STM (10) #define NETWORK_UIPETHERNET (11) #define NETWORK_ETHERNET_2 (12) +#define NETWORK_ETHERNET_GENERIC (13) // Ethernet generic // if you want force disable SSL if present uncomment this define // #define FORCE_DISABLE_SSL diff --git a/README.md b/README.md index 36cb826..71ad8db 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 + - 16/02/2023: v3.0.11 Add support for Ethernet_Generic - 20/01/2023: v3.0.10 Add the management of ESP8266SdFat library on Raspberry Pi Pico [#forum](https://www.mischianti.org/forums/topic/raspberry-pico-w-emailsender) - 17/01/2023: v3.0.10 Add the mamagement of auto check of response number #36 thanks to @HACKER-3000 @H3 - 13/01/2023: v3.0.9 Fix external storage error 404 ([#forum](https://www.mischianti.org/forums/topic/email-with-sd-files/) diff --git a/library.json b/library.json index 3046db0..e73312b 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.10", + "version": "3.0.11", "platforms": "*" } diff --git a/library.properties b/library.properties index aa19361..5d1d898 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=EMailSender -version=3.0.10 +version=3.0.11 author=Renzo Mischianti maintainer=Renzo Mischianti sentence=Send EMail via SMTP, library for Raspberry Pi Pico W, Arduino, SAMD (WiFiNINA), STM32, esp8266 and esp32.