SMTP client TLS handshake not sent #3019
Replies: 2 comments 3 replies
-
Did you try the tutorial example as is before trying to add it into your Wizard code ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Here's the fix #3023 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have problem with running SMTP client when using TLS. Everything is fine when use SMTP server without TLS and just omit authorization part of transmission.
To simplify things I created empty project with Mongoose Wizard on NUCLEO-H753ZI. The only think I added is 5s timer which connects to smtp server exactly as in smtp client tutorial. I am using built-in TLS.
From the mongoose log and wireshark it's visible that the client handshake is not being sent and the connection closes due to timeout. Am I missing something or is there any way to debug this a bit more to find the reason? I tried with 3 different smtp servers and situation is the same for each. I will appreciate any help, thank you.
Mongoose log:
2712 3 mongoose.c:3971:mg_connect 3 -1 tcp://smtp.office365.com:587
2720 3 mongoose.c:288:dns_cb 3 ooc-g2.tm-4.office.com is 40.99.218.146
2720 3 mongoose.c:5162:mg_connect_res 3 192.168.1.100:43447 -> 40.99.218.146:587
2739 2 mongoose_impl.c:630:fn <-- 220 WA1P291CA0013.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 23 Jan 2025 10:25:36 +0000 [08DD3B7858DD3449]
2739 2 mongoose_impl.c:676:fn --> EHLO myname
2745 2 mongoose_impl.c:630:fn <-- 250-WA1P291CA0013.outlook.office365.com Hello [83.144.90.202]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
2745 2 mongoose_impl.c:676:fn --> STARTTLS
274f 2 mongoose_impl.c:630:fn <-- 220 2.0.0 SMTP server ready
2751 2 mongoose_impl.c:676:fn -->
Wireshark log:
Beta Was this translation helpful? Give feedback.
All reactions