Replies: 5 comments
-
The debug info While SSL/TLS is communication protocol which library is supported based on ports you assigned, if you read the document. The error message, |
Beta Was this translation helpful? Give feedback.
-
And at the line If you don't have server or don't want to assign any IP address, you can assign fake domain name like e.g. example.com. Assign the invalid format of IP or domain name, server may reject the connection because this IP or domain name is the argument of SMTP server hello command. When you assign the SSL or TLS port, you will see the debug message about perform the SSL/TLS handshake which means all data will send via SSL/TLS protocol. For server SSL certificate verification, you can see the example at the line that root CA certificate was assigned which currently commented or ignored. |
Beta Was this translation helpful? Give feedback.
-
You should not set You must read the Readme doc at the home page of this library repository that described about the ports and protocols already. The mail server will support TLS if it contains Normally SMTP port 587 supports TLS protocol and port 465 is for SSL protocol. |
Beta Was this translation helpful? Give feedback.
-
The library provides full debugging where all client requests and server responses are printed. You should follow the examples with some modification about host name, port and login credentials which you can assign port 465 or 587 which depends on mail server supports. Port 465 (SSL) is not supported by Outlook server which is already stated in examples. |
Beta Was this translation helpful? Give feedback.
-
In addition, you should post the full debug message instead of conclude what you're understanding because of it can be wrong. With debug messages I can verify where is the error comes from. |
Beta Was this translation helpful? Give feedback.
-
Environment: Arduino IDE
Other libraries: None
Board: ESP32-S2-SAOLA
I'm using an email provider that requires SSL/TLS connections. However, using the code in example files, there is a message claiming
! W: Skipping SSL Verification. INSECURE!
And later,> E: LOGIN failed. Illegal arguments.
I assume this is because the server is denying the insecure connection.OK, so I add the following to the sketch:
session.secure.startTLS = true;
- Then the connection times out at the following:Question: Is the library supposed to default to secure SSL? How can I troubleshoot the connection or get more information on what's going wrong?
Beta Was this translation helpful? Give feedback.
All reactions