I try to send email from SQL Anywhere 12.0.1.3873 but xp_startsmtp return code 100 (Socket error). I closed firewall and antivirus.

li_ret = CALL  xp_startsmtp( 
    smtp_sender = 'usermail@test.com'
    , smtp_server = 'smtp.test.com'
    , smtp_port = 25
    , timeout = 60
    , smtp_auth_username = 'usermail@test.com'
    , smtp_auth_password = 'password'
);

asked 17 Feb '14, 08:11

eraqaty's gravatar image

eraqaty
75457
accept rate: 0%

edited 17 Feb '14, 09:33

Mark%20Culp's gravatar image

Mark Culp
22.5k9129264


I'm afraid there isn't much I can tell you. SA 12 didn't have much in the way of diagnostics for the mail routines. In SA 16, you can get more detailed error messages.

As a test, start a command prompt and see if you can run 'telnet smtp.test.com 25'. If you successfully connect, then the problem is within SQL Anywhere.

permanent link

answered 17 Feb '14, 08:36

Graeme%20Perrow's gravatar image

Graeme Perrow
8.4k369107
accept rate: 51%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×405

question asked: 17 Feb '14, 08:11

question was seen: 1,069 times

last updated: 17 Feb '14, 09:33