I’ve been using gmail for months. It’s been configured for unsecure, no 2 factor. It was working until I switched from wifi to ethernet. now it no longer works.
It’s not connecting to my gmail account. It used to connect. email address and password have not changed. Gmail gave me an unknown device, access blocked message. I told it it was me. I’m no longer getting security messages, but there’s still no connection. gmail account set to allow insecure connections, no 2 factor.
Connection: ESTABLISHED
Got IP address: 10.0.160.182
Sending status:
Connection: ESTABLISHED
Got IP address: 10.0.160.182
Sending status:
0
2
Could not connect to mail server
Exception stack trace decoder shows the following:
Decoding stack results
0x4008be30: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 155
0x4008c061: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 170
0x40088301: xQueueGenericReceive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c line 1442
0x4012947e: sys_mutex_lock at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c line 78
0x4012967e: sys_arch_protect at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c line 469
0x4011bae0: do_memp_malloc_pool at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/memp.c line 302
0x4011bb49: memp_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/memp.c line 398
0x40118ce6: netconn_alloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/api_msg.c line 742
0x40117b70: netconn_new_with_proto_and_callback at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/api_lib.c line 133
0x4011b364: lwip_socket at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/sockets.c line 1587
0x400d46d8: start_ssl_client(sslclient_context*, char const*, unsigned int, int, char const*, char const*, char const*, char const*, char const*) at C:\Users\Student01\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure\src\ssl_client.cpp line 61
0x400d4456: WiFiClientSecure::connect(char const*, unsigned short, char const*, char const*, char const*) at C:\Users\Student01\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp line 129
0x400d4551: WiFiClientSecure::connect(char const*, unsigned short) at C:\Users\Student01\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp line 111
0x400d2525: EMailSender::send(char const**, unsigned char, unsigned char, unsigned char, EMailSender::EMailMessage&, EMailSender::Attachments) at C:\Users\Student01\Documents\Arduino\libraries\EMailSender\EMailSender.cpp line 396
0x400d384a: EMailSender::send(char const**, unsigned char, unsigned char, EMailSender::EMailMessage&, EMailSender::Attachments) at C:\Users\Student01\Documents\Arduino\libraries\EMailSender\EMailSender.cpp line 351
0x400d3875: EMailSender::send(char const**, unsigned char, EMailSender::EMailMessage&, EMailSender::Attachments) at C:\Users\Student01\Documents\Arduino\libraries\EMailSender\EMailSender.cpp line 346
0x400d38a1: EMailSender::send(char const*, EMailSender::EMailMessage&, EMailSender::Attachments) at C:\Users\Student01\Documents\Arduino\libraries\EMailSender\EMailSender.cpp line 341
0x400d1e36: setup() at C:\Users\Student01\Documents\Arduino\EMailSenderEsp32GMailTestETH/EMailSenderEsp32GMailTestETH.ino line 58
0x400d9f53: loopTask(void*) at C:\Users\Student01\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 14
0x40088615: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
This reply was modified 1 year, 4 months ago by Renzo Mischianti.
ino attached. emailsenderkey below because it won’t attach for security reasons
/*
* EMail Sender Arduino, esp8266 and esp32 library to send email
*
* AUTHOR: Renzo Mischianti
* VERSION: 2.3.0
*
* http://mischianti.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2017 Renzo Mischianti www.mischianti.org All right reserved.
*
* You may copy, alter and reuse this code in any way you like, but please leave
* reference to www.mischianti.org in your comments if you redistribute this code.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef EMailSenderKey_h
#define EMailSenderKey_h
// Uncomment if you use esp8266 core <= 2.4.2
//#define ARDUINO_ESP8266_RELEASE_2_4_2
#define ENABLE_ATTACHMENTS
// Uncomment to enable printing out nice debug messages.
//#define EMAIL_SENDER_DEBUG
// Define where debug output will be printed.
#define DEBUG_PRINTER Serial
#define STORAGE_SPIFFS (0)
#define STORAGE_LITTLEFS (1)
#define STORAGE_FFAT (2)
#define NETWORK_ESP8266_ASYNC (0)
#define NETWORK_ESP8266 (1)
#define NETWORK_ESP8266_242 (6)
#define NETWORK_W5100 (2)
#define NETWORK_ENC28J60 (3)
#define NETWORK_ESP32 (4)
#define NETWORK_ESP32_ETH (5)
#define NETWORK_WiFiNINA (7)
#ifndef DEFAULT_EMAIL_NETWORK_TYPE_ESP8266
#define DEFAULT_EMAIL_NETWORK_TYPE_ESP8266 NETWORK_ESP8266
#define DEFAULT_INTERNAL_ESP8266_STORAGE STORAGE_SPIFFS
#endif
#ifndef DEFAULT_EMAIL_NETWORK_TYPE_ESP32
#define DEFAULT_EMAIL_NETWORK_TYPE_ESP32 NETWORK_ESP32
#define DEFAULT_INTERNAL_ESP32_STORAGE STORAGE_SPIFFS
#endif
#ifndef DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO
#define DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO NETWORK_W5100
#endif
#ifndef DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO_SAMD
#define DEFAULT_EMAIL_NETWORK_TYPE_SAMD NETWORK_WiFiNINA
#endif
#define SD_CS_PIN 4
//#define STORAGE_INTERNAL_FORCE_DISABLE
//#define STORAGE_SD_FORCE_DISABLE
#endif
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.