Knowledgebase: Developer
Mail Helper status
Posted by Craig Lebakken on 19 July 2007 03:40 PM
Question:
Is there a way to programatically determine if an email has been sent correctly when using the Win2PDF Mail Helper?

Answer:
The Win2PDF Mail Helper writes the status result to the registry in the standard Win2PDF registry locations. The value name is "MailHelperResult", and the result is "0" on success or a non-zero error code on failure.  The possible error codes are listed below:

-- component errors --
12001 - Unable to initialize Winsock library
12002 - Cannot locate host <host>
12003 - Invalid operation at current state
12004 - Base64 encoding error
12005 - POP Authentication failed. No POP3 server specified
12006 - No email sender (MAIL FROM) specified
12007 - No email recipient (RCPT TO) specified
12008 - No mailserver specified
12009 - Invalid port specified: acceptable values are 1 - 32255
12010 - Invalid timeout specified: acceptable values are 100 - 600000 (ms)
12011 - POP3 connection failed. Timeout exceeded
12012 - SMTP connection failed. Timeout exceeded

-- winsock errors --
10004 - Interrupted system call
10009 - Bad file number
10013 - Permission Denied
10014 - Bad Address
10022 - Invalid Argument
10024 - Too many open files
10035 - Operation would block
10036 - Operation now in progress
10037 - Operation already in progress
10038 - Socket operation on nonsocket
10039 - Destination address required
10040 - Message too long
10041 - Protocol wrong type for socket
10042 - Protocol not available
10043 - Protocol not supported
10044 - Socket type not supported
10045 - Operation not supported on socket
10046 - Protocol family not supported
10047 - Address family not supported by protocol family
10048 - Address already in use
10049 - Can't assign requested address
10050 - Network is down
10051 - Network is unreachable
10052 - Network dropped connection
10053 - Software caused connection abort
10054 - Connection reset by peer
10055 - No buffer space available
10056 - Socket is already connected
10057 - Socket is not connected
10058 - Can't send after socket shutdown
10059 - Too many references: can't splice
10060 - Connection timed out
10061 - Connection refused
10062 - Too many levels of symbolic links
10063 - File name too long
10064 - Host is down
10065 - No route to host
10066 - Directory not empty
10067 - Too many processes
10068 - Too many users
10069 - Disk quota exceeded
10070 - Stale NFS file handle
10071 - Too many levels of remote in path
10091 - Network subsystem is unusable
10092 - Winsock DLL cannot support this application
10093 - Winsock not initialized
10101 - Disconnect
11001 - Host not found
11002 - Nonauthoritative host not found
11003 - Nonrecoverable error
11004 - Valid name, no data record of requested type
11013 - Connection closed

-- pop3 errors --
12100 - all POP3 errors (see error description)

-- smtp errors --
12211 - System status/help reply
12214 - Help message
12220 - <domain> Service ready
12221 - <domain> Service closing channel
12235 - Authentication successful
12250 - OK: action completed
12251 - User not local, will forward to <domain>
12334 - Server challenge / ready response
12354 - OK: Start mail input, end with <CrLf>.<CrLf>
12421 - <domain> Service not available, closing channel
12432 - A password transition is needed
12450 - Mailbox busy, action not taken
12451 - Requested action aborted: error in processing
12452 - Requested action not taken: insufficient system storage
12454 - Temporary authentication failure
12500 - Syntax error, command unrecognized
12501 - Syntax error in parameters or arguments
12502 - Command not implimented
12503 - Bad sequence of commands
12504 - Command parameter not implimented
12530 - Authentication required
12534 - Authentication mechanism is too weak
12535 - Server rejected authentication
12538 - Encryption required for requested authentication mechanism
12550 - Mailbox unavailable, action not taken
12551 - User not local, please try <forward-path>
12552 - Requested action not taken: exceeds storage allocation
12553 - Requested action not taken: mailbox name not allowed / invalid
12554 - Transaction failed


(1 vote(s))
Helpful
Not helpful

Comments (0)

Copyright 2000-2018 © Dane Prairie Systems LLC. All Rights Reserved. About Us | Privacy Policy | PDF Blog | Site Map