on 2018 May 07 11:01 AM
On Sybase 10 I am not able to establish SMTP Session. I receive always the error code 503 (Bad sequence of commands), when I call: select xp_startsmtp('mayname@mycompany.com', 'our_email_server_url', 25, 60, 'my_name', 'myname@mycompany.com', 'my_pwd') from dummy!! Could anyone help?
Request clarification before answering.
This is a stored procedure, not a stored function, so I recommend to use
CALL retCode = xp_startsmtp(...);
instead of using SELECT ...
Not sure whether that explains your error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, sorry for misstyping. I mean myname@mycompany.com. which I used for the first and sixth parameter. Error code 503 means according to the documentation 'bad sequence of commands'!! Does this mean bad sequence of parameters? althgough I am using the correct order and correct number of parameters.
No, in my (limited) understanding it means that something is wrong with authentification, e.g. when the SMTP server does not expect authentication.
If you can test with v16 or v17, there's better error handling via the additional xp_get_mail_error_code()/xp_get_mail_error_text functions.
User | Count |
---|---|
52 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.