mirror of https://github.com/arendst/Tasmota.git
fix esp8266 email
This commit is contained in:
parent
97b27c504a
commit
f3b5201c67
|
@ -418,6 +418,10 @@ size_t WiFiClientSecure_light::_write(const uint8_t *buf, size_t size, bool pmem
|
||||||
return sent_bytes;
|
return sent_bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WiFiClientSecure_light::setInsecure() {
|
||||||
|
_insecure = true;
|
||||||
|
}
|
||||||
|
|
||||||
size_t WiFiClientSecure_light::write(const uint8_t *buf, size_t size) {
|
size_t WiFiClientSecure_light::write(const uint8_t *buf, size_t size) {
|
||||||
return _write(buf, size, false);
|
return _write(buf, size, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,8 @@ class WiFiClientSecure_light : public WiFiClient {
|
||||||
return _max_thunkstack_use;
|
return _max_thunkstack_use;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setInsecure();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _clear();
|
void _clear();
|
||||||
bool _ctx_present;
|
bool _ctx_present;
|
||||||
|
@ -152,7 +154,6 @@ class WiFiClientSecure_light : public WiFiClient {
|
||||||
|
|
||||||
unsigned char *_recvapp_buf;
|
unsigned char *_recvapp_buf;
|
||||||
size_t _recvapp_len;
|
size_t _recvapp_len;
|
||||||
|
|
||||||
bool _clientConnected(); // Is the underlying socket alive?
|
bool _clientConnected(); // Is the underlying socket alive?
|
||||||
bool _connectSSL(const char *hostName); // Do initial SSL handshake
|
bool _connectSSL(const char *hostName); // Do initial SSL handshake
|
||||||
void _freeSSL();
|
void _freeSSL();
|
||||||
|
|
|
@ -203,6 +203,8 @@ String buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
client->setTimeout(timeout);
|
client->setTimeout(timeout);
|
||||||
|
client->setInsecure();
|
||||||
|
|
||||||
// smtp connect
|
// smtp connect
|
||||||
#ifdef DEBUG_EMAIL_PORT
|
#ifdef DEBUG_EMAIL_PORT
|
||||||
AddLog(LOG_LEVEL_INFO, PSTR("Connecting: %s on port %d"),host.c_str(),port);
|
AddLog(LOG_LEVEL_INFO, PSTR("Connecting: %s on port %d"),host.c_str(),port);
|
||||||
|
@ -484,4 +486,4 @@ void attach_File(char *path) {
|
||||||
|
|
||||||
#endif // USE_SENDMAIL
|
#endif // USE_SENDMAIL
|
||||||
|
|
||||||
#endif // ESP32
|
#endif // ESP8266
|
||||||
|
|
Loading…
Reference in New Issue