Error Codes

This list gives possible error codes for the TwinCAT SMTP Server supplement product. If an error code is generated that is not included in the list, please refer to the ADS Return Codes or the WinSockErrorCodes list.

Error code (hex)

Error code (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

Unexpected 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

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4000

PC or CX (x86)

Tc2_Smtp