[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference gyro::internet_toolss

Title:Internet Tools
Notice:Report ALL NETSCAPE Problems directly to [email protected].rnet? Read note 448.L for beginner information.
Moderator:teco.mro.dec.com::tecotoo.mro.dec.com::mayer
Created:Fri Jun 25 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:4714
Total number of notes:40609

4523.0. "Sending mail on NT using Tcl CGI" by TAVIS::IZAK (Computers,all they think of is HEX) Thu Mar 06 1997 08:58

Hello all,

I am tring to create a page that will accept some comments from the 
user through a form and send them to me by mail. I wish to use a Tcl
script to do the CGI stuff. The Server I am using is IIS on a
Windows NT machine.

The HTML form is something like :
 	
	<FORM METHOD="POST" ACTION="/scripts/sndcomm.tcl">
	<TEXTAREA NAME="comments" ROWS=6 COLS=50></TEXTAREA><P>
	<INPUT TYPE="submit" VALUE="Send Comments"><P>
	</FORM>

If my server was a UNIX machine, I would have created the CLI script as:

		proc domail {input to} {
			set fid [open "|mail $to" w]
			puts $fid "Subject : Comments on blah blah"
		puts $fid $input
		close $fid }

		cgi_parse_query [cgi_get_query] Q
		domail $Q(comments) "myself@mynode"
		puts {Content-type: text/html

		<h1>Thank You</h1>
		Your comments have been submitted}

And this would have sent me the comments by mail using the UNIX mail command.
But the problem is that my server is an NT and the mail command does
not exist.

I'll appreciate if someone could give me a suggestion what to do.

Thanks in advance
Izak
T.RTitleUserPersonal
Name
DateLines
4523.1blatPARZVL::KENNEDYnuncam non paratusThu Mar 06 1997 12:459
The common solution is to use a program called "blat", which is an SMTP sender for
WindowsNT.  It's included on the NT SDK I believe.  An internal AltaVista search
yields several pointers, including:

 http://roadmap.mro.dec.com/RoadmapCD/HTML/SHAREWARE/SHAREWAREINDEX.HTM

Which has the Readme & a pointer to the kit.  

(it also yielded about half a dozen on-line dictionaries!)
4523.2ThanksTAVIS::IZAKComputers,all they think of is HEXThu Mar 06 1997 16:285
Cheers. Blat was exactly what I was looking for. Although I forgot to mention
that my NT system is an Alpha, but performing a small search for it using
Alta Vista, I had no problem finding it in the Internet.

Thanks again
4523.3wSendmail for NT and 95BAGELS::OBRIENFri Mar 07 1997 09:0828

A better choice is wsendmail.... 



wSendmail 

wSendmail is a tiny Win32 utility that sends emails from the command line - 
or you can use the program directly as a standard CGI-BIN app. In CGI-BIN 
mode it will pick the data from your HTML Forms and send it all as email to
whoever you choose. 

Features: 

    Command line sendmail utility for Win32 (Win95/NT) 
    Written in c++, very fast and takes almost no resources on your server 
    Comforms with RFC 821 (SMTP) and RFC 822 (Standard format of ARPA Internet
    text messages) 
    Supports MIME 1.0 character encoding for European national characters 
    Supports multiple receivers of the email 
    Full CGI-BIN support. Can pick up to 500 fields from your forms and send 
    them as email 
    Security feature will ensure that only authorized mailboxes are accessed 
    (if enabled) 
    Freeware 


4523.4teco.mro.dec.com::tecotoo.mro.dec.com::mayerDanny MayerFri Mar 07 1997 11:598
	Interesting to see that the Roadmap site is now indexed in AltaVista.
  BLAT comes with source code so you should just be able to rebuild it for Alpha
  (and send me the resulting .EXE ;-)).

	Does wSendmail come with sources?  Do you have a pointer?  (I know, use
  AltaVista.)

		Danny
4523.5Yes with sourcesBAGELS::OBRIENFri Mar 07 1997 13:3210

Danny
	wSendmail comes with sources?  Try http://www.jgaa.com/cgi-bin.htm

have fun

Mike