Replies: 5 comments 15 replies
-
I don't see memory leaks from intensive test 24/7 for years and memory allocation in this library is done by well manage code. |
Beta Was this translation helpful? Give feedback.
-
Can I use |
Beta Was this translation helpful? Give feedback.
-
You should know that library keeps the sending log inside the ESP-Mail-Client/examples/SMTP/Send_Text/Send_Text.ino Lines 296 to 297 in caae858 |
Beta Was this translation helpful? Give feedback.
-
I am using this line. |
Beta Was this translation helpful? Give feedback.
-
Thanks for informing this issue. You are right, the memory leaks on TCP client initializing in ESP8266 and Raspberry Pi Pico. Now it fixed already in v3.0.1, please update. |
Beta Was this translation helpful? Give feedback.
-
I am using this code to check the email parameters and the presence of an SMTP server on the network.
if (smtp.connect(&session))
{
Serial.println("OK");
}
else
{
Serial.println("Fail");
}
But after the execution of this function, the memory is not returned. If you then execute
MailClient.sendMail(&smtp, &message)
the memory is returned.Free memory=194392
> C: Wait for NTP server time synching
SMTP server connected, wait for greeting...
Sending greeting response...
Logging in...
Free memory=149928
Now send email
Sending Email...
Sending message header...
Sending message body...
Finishing the message sending...
Closing the session...
Message sent successfully
----------------
Message sent success: 1
Message sent failled: 0
----------------
Message No: 1
Status: success
Date/Time: 2023/3/2 19:19:11
Recipient: [email protected]
Subject: test
----------------
Free memory=194492
I check the connection to the email server every hour. And with each check, the memory leaks. A day later, I can no longer send a letter.
Beta Was this translation helpful? Give feedback.
All reactions