Re: [wpearsall] running a program from the command line, called via cgi
[In reply to]

Can't Post

wpearsall,

Not sure, but I don't think you have provided enough information.

I would think the form action tag should be able to be set to mailto.exe, but I am not sure how you would pass the -U, -h and -D switches and values. These normally would be passed as parameters to a CGI script in the following manner:

Then, when the form is sent to the cgi-bin via CGI, the start values would be passed and the value entered in the email form would be entered. I would not be thrilled with this, because someone could copy the action tag and possibly use your mailer to send stuff to the person entering the info. But, logistically, this is how it is done. I am not familiar with the mailto.exe program so my variable names are definitely in error. This was just an exercise to show how cgi parameters are passed.

Re: [fashimpaur] running a program from the command line, called via cgi
[In reply to]

Can't Post

OK, maybe do need to explain a little more, you know how you bring up MS Dos, and CD to the directory where the .exe file is?

then type "Filename.exe -U address@domain.ext -D address@otherdomain.ext" then hit enter, it then makes the .exe launch, and run, send the email, and then close itself, well i wanna do that from CGI Script,

Re: [wpearsall] running a program from the command line, called via cgi
[In reply to]

Can't Post

wpearsall,

Then, barring any errors in my script in my original post, that would handle an input from a form with an email input box for the person you are attempting to send the mail to. Try it out and let me know if you have any problems.

Quote

If all else fails, you could do this: this is the text in a perl script to be saved as mailer.cgi