Skip to content

Commit 89b74ac

Browse files
committed
Add support for Ethernet_Generic
1 parent ed3471e commit 89b74ac

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

EMailSender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
33
*
44
* AUTHOR: Renzo Mischianti
5-
* VERSION: 3.0.10
5+
* VERSION: 3.0.11
66
*
77
* https://www.mischianti.org/
88
*

EMailSender.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
33
*
44
* AUTHOR: Renzo Mischianti
5-
* VERSION: 3.0.10
5+
* VERSION: 3.0.11
66
*
77
* https://www.mischianti.org/
88
*
@@ -165,6 +165,13 @@
165165
#define EMAIL_NETWORK_CLASS EthernetClient
166166
#define EMAIL_NETWORK_SERVER_CLASS EthernetServer
167167

168+
#elif(EMAIL_NETWORK_TYPE == NETWORK_ETHERNET_GENERIC)
169+
170+
#include <Ethernet_Generic.h>
171+
#include <SPI.h>
172+
#define EMAIL_NETWORK_CLASS EthernetClient
173+
#define EMAIL_NETWORK_SERVER_CLASS EthernetServer
174+
168175
#elif(EMAIL_NETWORK_TYPE == NETWORK_ENC28J60 || EMAIL_NETWORK_TYPE == NETWORK_UIPETHERNET)
169176

170177
#include <UIPEthernet.h>

EMailSenderKey.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
33
*
44
* AUTHOR: Renzo Mischianti
5-
* VERSION: 3.0.10
5+
* VERSION: 3.0.11
66
*
77
* https://www.mischianti.org/
88
*
@@ -61,6 +61,7 @@
6161
#define NETWORK_ESP8266 (1)
6262
#define NETWORK_ESP8266_242 (6)
6363
#define NETWORK_W5100 (2)
64+
#define NETWORK_ETHERNET (2) // Standard Arduino Ethernet library
6465
#define NETWORK_ENC28J60 (3)
6566
#define NETWORK_ESP32 (4)
6667
#define NETWORK_RP2040_WIFI (4)
@@ -71,6 +72,7 @@
7172
#define NETWORK_ETHERNET_STM (10)
7273
#define NETWORK_UIPETHERNET (11)
7374
#define NETWORK_ETHERNET_2 (12)
75+
#define NETWORK_ETHERNET_GENERIC (13) // Ethernet generic
7476

7577
// if you want force disable SSL if present uncomment this define
7678
// #define FORCE_DISABLE_SSL

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Arduino (support W5100 like must be set, and ENC28J60 via UIPEthernet), esp8266
2626
#### [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/)
2727

2828
## Change log
29+
- 16/02/2023: v3.0.11 Add support for Ethernet_Generic
2930
- 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)
3031
- 17/01/2023: v3.0.10 Add the mamagement of auto check of response number #36 thanks to @HACKER-3000 @H3
3132
- 13/01/2023: v3.0.9 Fix external storage error 404 ([#forum](https://www.mischianti.org/forums/topic/email-with-sd-files/)

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
},
1717
"url": "https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/",
1818
"frameworks": "Arduino",
19-
"version": "3.0.10",
19+
"version": "3.0.11",
2020
"platforms": "*"
2121
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EMailSender
2-
version=3.0.10
2+
version=3.0.11
33
author=Renzo Mischianti <renzo.mischianti@gmail.com>
44
maintainer=Renzo Mischianti <renzo.mischianti@gmail.com>
55
sentence=Send EMail via SMTP, library for Raspberry Pi Pico W, Arduino, SAMD (WiFiNINA), STM32, esp8266 and esp32.

0 commit comments

Comments
 (0)