Error Codes

This list contain error codes of the TwinCAT supplement product SMTP Server. If you miss some error codes, please look under ADS return codes or WinSockErrorCodes.

Hex

Dec

Description

< 0x8000

< 32778

ADS return code

0x800A

32778

Not connected

0x800B

32779

Sender expected

0x800C

32780

Recipients expected

0x800D

32781

Send FROM command failed

0x800E

32782

Send DATA command failed

0x800F

32783

Send mail header failed

0x8010

32784

Send mail body failed

0x8011

32785

Send "end of mail indicator" failed

0x8012

32786

Send "RCPT" command failed

0x8013

32787

Server Response got no username request

0x8014

32788

Server Response got no password request

0x8015

32789

Unable to create socket connection

0x8016

32790

Authentication type not supported by smtp server

0x8017

32791

Wrong username or password

0x8018

32792

Not supported

0x8019

32793

Invalid hostname

0x801A

32794

Unable to send attachment

0x801B

32795

File not found

0x801C

32796

Invalid Version (New SMTP Server with old SMTP PLC library)

0x801D

32797

Unable to connect (Connection error => sometimes wrong port or wrong server)

0x801E

32798

Unable to create socket

0x801F

32799

WSA startup failed

0x8020

32800

Invalid hostname

0x8021

32801

Unecpected response from server

0x8022

32802

Error while receiving data

0x8023

32803

No supported authentication methods found

0x8024

32804

Invalid parameter

0x80A0

32928

Security interface not found

0x80A1

32929

Unable to call security interface

0x80A2

32930

Security initialization failed

0x80A4

32932

Unable to create credentials

0x80A5

32933

SSL-handshake failed

0x80A6

32934

Invalid server credentials

0x80A7

32935

Unable to verify server

0x80A8

32936

Unable to encrypt message

0x80A9

32937

Unable to decrypt message

The following errors can occur in older versions of the server (< 1.0.14)

Hex

Dec

Description

0x000A

10

Not connected

0x000B

11

Sender expected

0x000C

12

Recipients expected

0x000D

13

Send FROM command failed

0x000E

14

Send DATA command failed

0x000F

15

Send mail header failed

0x0010

16

Send mail body failed

0x0011

17

Send "end of mail indicator" failed

0x0012

18

Send "RCPT" command failed

0x0064

100

General error

0x0065

101

Invalid parameter

0x0066

102

Funtion not loaded

0x0067

103

Dll not loaded

0x0068

104

TcSmtpDll.dll cannot load. Check the installation from the TcSmtpDll.dll.

0x80D3

211

System status, or system help reply

0x80D6

214

Help message [Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user]

0x80FB

251

User not local; will forward to <forward-path>

0x8163

354

Start mail input; end with <CRLF>.<CRLF>

0x81A5

421

<domain> Service not available, closing transmission channel [This may be a reply to any command if the service knows it must shut down]

0x81C2

450

Requested mail action not taken: mailbox unavailable [E.g., mailbox busy]

0x81C3

451

Requested action aborted: error in processing

0x81C4

452

Requested action not taken: insufficient system storage

0x81F4

500

Syntax error, command unrecognized [This may include errors such as command line too long]

0x81F5

501

Syntax error in parameters or arguments.

0x81F6

502

Command not implemented.

0x81F7

503

Bad sequence of commands.

0x8504

504

Command parameter not implemented

0x8226

550

Requested action not taken: mailbox unavailable [E.g., mailbox not found, no access]

0x8227

551

User not local; please try <forward-path>

0x8228

552

Requested mail action aborted: exceeded storage allocation

0x8229

553

Requested action not taken: mailbox name not allowed [E.g., mailbox syntax incorrect]

0x8224

554

Transaction failed