From 174734855899ca4a864fdf3e98287e64ea34151c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 20 Jun 2022 17:44:11 +0200 Subject: [PATCH] Fixed ESP32 SendMail not working over ethernet Fixed ESP32 SendMail not working over ethernet (#15794) --- CHANGELOG.md | 3 +-- RELEASENOTES.md | 1 + lib/lib_div/lib_mail/src/ESP_Mail_Client.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bab39c676..06cb69b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. ### Changed ### Fixed +- ESP32 SendMail not working over ethernet (#15794) ### Removed @@ -24,8 +25,6 @@ All notable changes to this project will be documented in this file. ### Fixed - MQTT rc -4 on connections regression from v12.0.0 (#15809) -## [Released] - ## [12.0.1] 20220617 - Release Paul diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 92a45f93f..1a0505579 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -115,5 +115,6 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo ### Changed ### Fixed +- ESP32 SendMail not working over ethernet [#15794](https://github.com/arendst/Tasmota/issues/15794) ### Removed diff --git a/lib/lib_div/lib_mail/src/ESP_Mail_Client.cpp b/lib/lib_div/lib_mail/src/ESP_Mail_Client.cpp index f1acdf53f..f36788385 100755 --- a/lib/lib_div/lib_mail/src/ESP_Mail_Client.cpp +++ b/lib/lib_div/lib_mail/src/ESP_Mail_Client.cpp @@ -5417,7 +5417,8 @@ bool ESP_Mail_Client::ethLinkUp() #if defined(ESP32) char *ip = strP(esp_mail_str_328); if (strcmp(ETH.localIP().toString().c_str(), ip) != 0) - ret = ETH.linkUp(); +// ret = ETH.linkUp(); + ret = true; delS(ip); #endif return ret;