I am using the SendSmtpMail function and trying to capture the error code returned. I receive the code -15 for example, but this does not correspond to any SMTP specific error code I can find on the Internet. The error codes I can find on the Internet refer to 3 digit codes, e.g. 500 means "Syntax error, command unrecognized."
Does anyone know what the error codes returned from the SendSmtpMail function mean?
Thanks.
Amyuni and SMTP error codes
Hello,
Please find here the return values of the SendSmtpMail() function
Hope this helps.
Please find here the return values of the SendSmtpMail() function
Code: Select all
long WINAPI SendSmtpMail(LPCSTR szHostnszMessage, LPCSTR szFilenames)
FAILURE 11 Winsock version not found
13 Error connecting to server
14 Error communicating with server
15 Recipient error
16 Error sending the data
17 Error while quitting
20 Not enough resources
22 Not authenticated
SUCCESS 0
-
- Posts: 6
- Joined: Wed Apr 27 2011
Re: Amyuni and SMTP error codes
I am getting a return code of 22 from SendSmtpMailEx() using version 4.5. I cannot find what this code means to troubleshoot the error. Are there other return codes that are less common not documented?
Re: Amyuni and SMTP error codes
Error -15 is described in the list below as "You get ERR_RECIPIENT -15 when the recipient email address is not working on the server. Like recipient not found, email address wrong or mailbox deleted..."
Amyuni Development Team
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
-
- Posts: 6
- Joined: Wed Apr 27 2011
Re: Amyuni and SMTP error codes
Your answer was about -15 and my question was about getting a 22 back from the sdk and what it could mean. Maybe I should have started another thread?
Re: Amyuni and SMTP error codes
Sorry about that. I just updated this post to include the description of error -22: ERR_NOTAUTHENTICATED. The server is requesting authentication, you either did not supply any username/password or the information that you supplied was not recognized by the server.
Robert
Robert
Amyuni Development Team
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com