Replies: 5 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Okay pining the task to core 1 of esp32 cam solver most of the problem of users of watch dog and espically smtp not connecting and greetings. New issue is i am able to send mail but without attachment. /21_02_2025_12_57_53.jpg
Any solution anyone please? |
Beta Was this translation helpful? Give feedback.
-
Which device you use, ESP32 or ESP8266? Your problem is the dangling pointer issue in your code. You should be careful to use the function that accepts the pointer to objects or variables which it should be lived for their usage scopes. You should follow the examples. Some class object should be defined globally not locally. At least you should try the example without modification unless the server, port and sign in credentials. About this debug message.
You have to follow this or this example and read and follow the comments in the example to configure the filesystems that you used properly. It may need to edit ESP_Mail_FS.h for filesystems and SDHelper.h for GPIOs for SD ports in case of SD/MMC card used. There are SD and SPIFFS related topics. |
Beta Was this translation helpful? Give feedback.
-
You should check the free heap for memory leaks which causes out of memory. For memory leaks, check your code for dynamic memory allocation. It should free in case of mallloc or delete in case of new operator before exits the usage scope. The pointer should set to nullptr or null too. |
Beta Was this translation helpful? Give feedback.
-
@mobizt thanks for reply, appreciated. I am using esp32 cam. |
Beta Was this translation helpful? Give feedback.
-
Below is my log - same code was working perfect few days ago and now after showing host and port it is dead.
Connecting to SMTP server...
Beta Was this translation helpful? Give feedback.
All reactions