Frequently Asked Questions

WindBox3.gif (7138 bytes)


Q: How do I copy a registered version of WindMail over an evaluation copy?
A: Just copy over the demo windmail.exe with the registered copy of windmail.exe sent to you. From the command-line try to run "windmail -v". That should provide you with the version and the registered status (demo or registered). You will need to make sure that you copy over all the copies of WindMail that you use. To find them all, you can go to the Start -> Find -> and search for "windmail.exe". Its quite possible that you're executing another copy you've made if you still see an indication that there are only xxxx number of uses left for the evaluation copy

Q: CGI returns "WindMail v2.0 mailer for WIN32 (95/NT) (### evaluation uses left)..." instead of my output.
A: Pleaase keep in mind the registered version does not return any banner messages. If you are testing WindMail, follow this easy work-around: Mute the banner to redirect the output of all WindMail calls to "NUL". Here is an example: "windmail -t >NUL".

Q: Perl Script or C/C++ program hangs when I call the WindMail executable.
A: Be sure to send WindMail a period on its own line. In Perl:. print MAIL "\n.\n" or in C: fprintf(mail, "\n.\n"");

Q: I am receiving an error message regarding my mail server "Server (mailhost) could not be found".
A: Either your WindMail.INI is not set up, is not set up correctly, or cannot be found by WindMail
This problem should happen less frequently after version 1.50 because WindMail now seeks out a WindMail.INI.

Q: WindMail appears to lock up, but I can still press Ctl-C and exit?
A: This is normal, you need to enter a message in the following form:

	---------------[ information below ]----------------------   
	To: user@domain
	From: user@domain
        Subject: Subject                <-- Header Information
	message text			<-- Message Text
	.				<-- Terminating Period (very important)
	---------------[ information above ]----------------------
Q: How do I make FormMail work with WindMail?
A: Please refer to http://www.geocel.com/windmail/library/formmail.htm 
There is a modified version of FormMail which has been tested with Window NT and WindMail.

Q: Is WindMail available on RISC versions of Windows NT.
A: Yes. It is available on the DEC Alpha RISC platform.

Q: Where do I place the 'windmail.exe' file?
A: In any directory in your PATH. If you have a utilities directory, then it would best fit there; otherwise the Windows directory should work just as well..

Q: I tried to specify a Subject with the -b switch, but it did not show up!
A: You may need to use the -h (don't expect a header) option. Otherwise, WindMail will wait for the end of a mail header to insert the Subject. If one is not provided, WindMail may never insert the Subject.

Q: I downloaded a Perl/CGI script, but it calls /usr/bin/sendmail, how do I make it use WindMail instead?
A: In most all cases, you only have to change to '/usr/bin/sendmail' to 'windmail'.

Q: Do you support the Sendmail ® '-t' switch?
A: Starting in WindMail 1.0 we fully support the -t switch. Supported header fields are To:, From:, Cc:, and Bcc:. Bcc: lines are deleted from the message. (-t allows you to specify recipients and senders in the message header that you provide to WindMail)

Q: Have any Security applications using WindMail been written yet?
A: AgentURL at http://www.geocel.com/agenturl/ uses WindMail as an email transport. It monitors bad HTTP requests on your Web Server and analyzes to determine the intent, or malintent of the requestor. It ranks malicious queries on a point scale and allows you to send High Priority mail in case of a security infraction. AgentURL includes a single license of WindMail.

Q: When I use WindMail in conjunction with Formail 1.6 I keep getting the same "debug" mail. Everything else seems to work just fine.
A: It appears that Windmail is configured for Debug Mode. Set the following lines in the INI file to =0 instead of =1. So:
DEBUG_MODE=1
DEBUG_HTML=1

Should look like:
DEBUG_MODE=0
DEBUG_HTML=0

Q: How can I make WindMail work from my programs?

A: Look below for examples:

Below is a Code Segment in C
FILE *pipemail;
pipemail=_popen("windmail -t","wb");
fprintf(pipemail,"To: benc@geocel.com\n");
fprintf(pipemail,"From: benc@geocel.com\n");
fprintf(pipemail,"Subject: Hello World\n"); 
fprintf(pipemail,"\n");
fprintf(pipemail,"This is the easiest way to implement WindMail \n");
fprintf(pipemail,"in a CGI script written in C.\n");
fprintf(pipemail,".\n");                     
_pclose(pipemail);  
Below is the same Code in Perl 5.001 for Windows NT
open(MAIL,"|windmail -t") ;
print MAIL "To: benc\@geocel.com\n";
print MAIL "From: benc\@geocel.com\n";
print MAIL "Subject: Hello World\n\n" ;
print MAIL "This is the easiest way to implement WindMail \n" ;
print MAIL "in a CGI script written in Perl.\n";
# The next line is very important
print MAIL ".\n" ;
close(MAIL) ;  
An example of a batch file
analyze < c:\logs\access > report
windmail -b "Access Log Report" -h benc@geocel.com < report
Feel free to cut and paste this code into your own programs.



GeoCel International
620 Congress, Suite 320 Austin, TX 78701
(512) 485-7550 FAX (512) 485-7555
© Copyright 1996-99 GeoCel International - All Rights Reserved
Sendmail ® is a registered trademark of Sendmail, Inc.