-
Hello mobizt I set the ESP_Mail_Session to Global variable and try to send the email every 20 seconds. but It send only 2 time, after that not send anymore. Is it normal ? Window 10 Code void smtpCallback(SMTP_Status status); SMTPSession smtp; unsigned long time_ms = false; void setup() Serial.begin(115200); WiFi.begin(WIFI_SSID, WIFI_PASSWORD); Serial.println(); smtp.debug(1); session.time.ntp_server = F("pool.ntp.org,time.nist.gov"); message.enable.chunking = true; message.sender.name = F("TEST"); message.subject = F("Esp32 Sending data"); message.addRecipient(F("user1"), F("[email protected]")); String htmlMsg = "<span style="color:#ff0000;">This message contains 1 inline image and 1 attachment file. message.html.transfer_encoding = Content_Transfer_Encoding::enc_qp; if (!smtp.connect(&session)) return; if ( !MailClient.sendMail(&smtp, &message ) ) ESP_MAIL_PRINTF("Free Heap: %d\n", MailClient.getFreeHeap()); time_ms = millis() + 20000; void loop() void smtpCallback(SMTP_Status status)
} Thank you so much mobizt. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I can't see any sending result from your post which I can't tell anything or help. |
Beta Was this translation helpful? Give feedback.
-
I'm investigating this issue and will update soon. |
Beta Was this translation helpful? Give feedback.
-
The library v2.5.3 with the issue fixed is available. Please update. |
Beta Was this translation helpful? Give feedback.
The library v2.5.3 with the issue fixed is available.
Please update.