Replies: 3 comments 2 replies
-
You can define and use SMTPSession and SMTP_Message as local variables in your function. SMTPSession will allocate the memory used by internal SSL client and user and program data which it used much memory while the session was opened for the connection. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok then , what would be the solution to renew the connection ? I tried different commands but none of them worked. I want to be sure that if my program trigger an alarm, email will be send, and not having an error because of Connection Closed. For the wifi, I saw a wifi reconnect() function in Wifi Manager , this could fix the wifi lost connection problem, but for the email server, is there a way to renwe the email session during loop ( on event trigger like in my code ) ?
Obtenir Outlook pour Android<https://aka.ms/AAb9ysg>
…________________________________
From: Suwatchai K. ***@***.***>
Sent: Tuesday, November 22, 2022 10:36:05 AM
To: mobizt/ESP-Mail-Client ***@***.***>
Cc: Lnt3gr4 ***@***.***>; Author ***@***.***>
Subject: Re: [mobizt/ESP-Mail-Client] Create Sub-program to call an Email Send. (Discussion #208)
This is not error and it's normal. You can't connect to server forever.
It is normal when the mail server closes the connection or internet connection interrupted, the connection will close.
—
Reply to this email directly, view it on GitHub<#208 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4DLWBY25Q5B67YY2EFEYMTWJTR6LANCNFSM6AAAAAASDVOSMU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I would like to know if its possible to put an Email Request on demand.
Ex. : In a sub-program, void Email_send with all the email config, header and message, then when Email_send program is called in the void Loop() section, the program send the email then return to the loop.
I would like that SMTP_session started in this sub-program so that everytime it's been called, the email session connection to server is renewed.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions