PDA

View Full Version : cgi and Sendmail on windows platform


friend
09-03-2000, 08:46 PM
Hello,
I can not find any information about equivalent of Sendmail program on windows platform.
MY cgi program gathers info from form fields
and then sends it by e-mail.
It works great on Unix - because of Sendmail, but the problem starts on Windows NT with IIS 4.0 server and Exchange 5.5 - all
on one PC, so I can't use SMTP at the same time.
Do you have any idea how I could resolve this problem???
thanks
evelyn

Henrik
09-04-2000, 01:11 AM
Evelyn,

Do you know any perl? There is a perl module for sending mail called Mail::Mailer and a SMTP communication module called net::SMTP.
These are perfect to use if you want to be able to send e-mail from any machine using perl.
Visit the link below for more info about netlib and mailtools(where those modules are included). Mail me at rain@myself.com if you run into any trouble.

http://www.gbarr.demon.co.uk/

Titan
09-06-2000, 07:39 PM
some people do not run Sendmail for NT on their systems, rather run Windmail. There is no path to Windmail, rather you simply add a few lines of code and your CGI will handle email like Sendmail handles email with PERL for UNIX.

open(MAIL,"|windmail -t") ; print MAIL "To: recipient@thedomainname.com "; print MAIL "From: sender@thedomainname.com "; print MAIL "Subject: Hello World " ; print MAIL "Message Body "; print MAIL "Message Body "; # The next line is very important print MAIL ". " ; close(MAIL) ;

Note: The second to the last line that prints a single period is very important. It tells windmail to stop accepting input and to send the email.

Also be sure your paths for NT are NOT the unix format...

------------------
Best of Luck!

Titan
ICQ 37149892

Henrik
09-06-2000, 10:10 PM
Yeah, but windmail lists for $130 if I'm not mistaking? Maybe you would be better off with Blat, which is a free and similar program. It is also supposed to be the most popular SMTP mailer for NT.

friend
09-26-2000, 10:39 PM
Thanks guys, I already resolved this problem
by using modules.