Error

<%SYS.error0%>
0	- Reserved

<%SYS.ERROR1%>
1	- CONTENT_LENGTH variable is not passed.
	When HTTP server executes an CGI program it is supposed to
	pass CONTENT_LENGTH environment variable to program.
	This error may occur due to server error.
	On this error CGIMailer always responses with internal error
	message.

<%SYS.error2%>
2	- Error reading STDIN.
	This error is generated if CGIMailer can't read number of
	bytes specified in CONTENT_LENGTH variable.
	On this error CGIMailer always responses with internal error
	message.

<%sys.error3%>
3	- Not enough memory.
	This error occurs if CGIMailer fails to allocate memory
	required to operate properly.

<%sys.error4%>
4	- Name of configuration file is not passed.
	CGIMailer expects name of configuration file to be passed as
	command line parameter or in SYS.CONFIGFILE variable.
	If this is not case it generates error with this code.
	If this error occurs check calling HTML code to see if the
	name of configuration file is correctly passed, also be sure
	to use POST method for calling CGIMailer.
	On this error CGIMailer always responses with internal error
	message.

<%sys.error5%>
5	- Syntax error in configuration file.
	This error is generated when CGIMailer finds unexpected line
	in configuration file.
	Also check if all variable names in configuration file are
	written correctly.


<%sys.error6%>
6	- Reserved

<%sys.error7%>
7	- Error reading configuration file.

<%sys.error8%>
8	- Error reading response template.
	This error is generated when response template is successfully
	opened but CGIMailer can't read complete file.

<%sys.error9%>
9	- Error reading error template.
	This error is generated when error template is successfully
	opened but CGIMailer can't read complete file.
	On this error CGIMailer always responses with internal error
	message.

<%sys.error10%>
10	- Error reading message template.
	This error is generated when message template is successfully
	opened but CGIMailer can't read complete file.

<%sys.error11%>
11	- Internal error

<%sys.error12%>
12	- Error opening response template.
	This error is generated when CGIMailer fails to open response
	template.
	If this error occurs check if TEMPLATE variable points to an
	existing file, also check access permissions for that file.
	All variables pointing to files are expected to contain path
	relative to cgimail.exe or an absolute path.

<%sys.error13%>
13	- Error opening message template.
	This error is generated when CGIMailer fails to open input
	template.
	If this error occurs check if MSGTEMPLATE variable points
	to an existing file, also check access permissions for
	that file.
	All variables pointing to files are expected to contain path
	relative to cgimail.exe or an absolute path.

<%sys.error14%>
14	- Error opening error template.
	This error is generated when CGIMailer fails to open error
	template.
	If this error occurs check if ERRTEMPLATE variable points to
	an existing file, also check access permissions for that file.
	All variables pointing to files are expected to contain path
	relative to cgimail.exe or an absolute path.

<%sys.error15%>
15	- Error opening configuration file.
	This error is generated when CGIMailer fails to open
	configuration file.
	If this error occurs check if name of configuration file passed to
	CGIMaier points to an existing file.
	All variables pointing to files are expected to contain path
	relative to cgimail.exe or an absolute path.
	On this error CGIMailer always responses with internal error
	message.

<%sys.error16%>
16	- Reserved

<%sys.error17%>
17	- Reserved

<%sys.error18%>
18	- Reserved

<%sys.error19%>
19	- Failed to sent mail.
	This error is generated when CGIMailer can't send mail for an
	unknown reason.

<%sys.error20%>
20	- Reserved

<%sys.error21%>
21	- Reserved

<%sys.error22%>
22	- Sender not acceptable.
	SMTP does not accepts address stated in FROM variable as valid.

<%sys.error23%>
23	- Recipient not acceptable.
	SMTP server refuses one(or more) address(es) listed in TO, CC or BCC.

<%sys.error24%>
24	- Required variable is not set.
	This error will be generated if CGIMailer finds required
	variable with value which is not set.

<%sys.error25%>
25	- Reserved

<%sys.error26%>
26	- Reserved

<%sys.error27%>
27	- Reserved

<%sys.error28%>
28	- Reserved

<%sys.error29%>
29	- TEMPLATE variable is not set.
	CGIMailer generates this error when TEMPLATE variable in
	configuration file can not be found.

<%sys.error30%>
30	- Reserved

<%sys.error31%>
31	- TO variable is not set.
	CGIMailer generates tihs error when TO variable in
	configuration file can not be found.

<%sys.error32%>
32	- Reserved

<%sys.error33%>
33	- Reserved

<%sys.error34%>
34	- Reserved

<%sys.error35%>
35	- Reserved

<%sys.error36%>
36	- Connection timed out.
	There was no response from server whithin TIMEOUT seconds.
	See TIMEOUT variable in configuration file.

<%sys.error37%>
37	- Connection reset by SMTP server.

<%sys.error38%>
38	- Invalid TIMEOUT value.

<%sys.error39%>
39	- Failed to initialise Windows socket subsystem.

<%sys.error40%>
40	- Network is down.

<%sys.error41%>
41	- Host is unreachable.
	This means that CGIMailer cant't reach SMTP server specified
	in GATEWAY variable in configuration file.

<%sys.error42%>
42	- Connection is refused.
	SMTP server specified in GATEWAY variable in configuration
	file refuses conections on specified port (PORT variable).

<%sys.error43%>
43	- Network is unreachable.

<%sys.error44%>
44	- SMTP server can not be found.
	CGIMailer can not find SMTP server's IP address.

<%sys.error45%>
45	- SMTP connection failed.
	CGIMailer generates this error when is connected to
	server but SMTP conversation failes.

<%sys.error46%>
46	- Unknown network error.
	An network error occured while sending mail.