mirror of https://github.com/arendst/Tasmota.git
sendmail core 2.3 fix
This commit is contained in:
parent
ca52a38bc1
commit
1d92436877
|
@ -40,7 +40,8 @@ bool SendEmail::send(const String& from, const String& to, const String& subject
|
|||
DEBUG_EMAIL_PORT.println(port);
|
||||
#endif
|
||||
|
||||
#ifndef ARDUINO_ESP8266_RELEASE_2_4_2
|
||||
#if defined(ARDUINO_ESP8266_RELEASE_2_3_0) || defined(ARDUINO_ESP8266_RELEASE_2_4_2)
|
||||
#else
|
||||
client->setInsecure();
|
||||
bool mfln = client->probeMaxFragmentLength(host.c_str(), port, 512);
|
||||
#ifdef DEBUG_EMAIL_PORT
|
||||
|
@ -51,6 +52,7 @@ bool SendEmail::send(const String& from, const String& to, const String& subject
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
if (!client->connect(host.c_str(), port))
|
||||
{
|
||||
#ifdef DEBUG_EMAIL_PORT
|
||||
|
|
|
@ -18,14 +18,14 @@ class SendEmail
|
|||
const int timeout;
|
||||
const bool ssl;
|
||||
const int auth_used;
|
||||
#ifndef ARDUINO_ESP8266_RELEASE_2_4_2
|
||||
#if defined(ARDUINO_ESP8266_RELEASE_2_3_0) || defined(ARDUINO_ESP8266_RELEASE_2_4_2)
|
||||
WiFiClient* client;
|
||||
#else
|
||||
// use bear ssl
|
||||
// #include "WiFiClientSecureLightBearSSL.h"
|
||||
// BearSSL::WiFiClientSecure_light *client;
|
||||
//BearSSL::WiFiClientSecure* client;
|
||||
WiFiClientSecure* client;
|
||||
#else
|
||||
WiFiClient* client;
|
||||
BearSSL::WiFiClientSecure* client;
|
||||
//WiFiClientSecure* client;
|
||||
#endif
|
||||
String readClient();
|
||||
void a3_to_a4(unsigned char * a4, unsigned char * a3);
|
||||
|
|
Loading…
Reference in New Issue