I am trying to send mail from a web page. I have moved the Rebol executable to another directory (it was in my cgi-bin directory). I redid my executable mappings using the guidelines from [EMAIL PROTECTED] And I stopped and restarted my website with no errors being presented.
 
I am running IIS 4.0 on NT 4.0. I have a user.r in the Rebol executable directory and I have added a set-net command (taken from my user.r) in the script. The script is from the rebol site that is modified to use my server. The script follows this message.
 
When I press the send message button on the webpage the browser just sits there until it times-out. The command in the webpage is: <FORM ACTION="http://www.brestl.com/cgi-bin/cgiemailer.r" METHOD="GET">
 
The Rebol script is (I took out extra newlines):

#!rebol -cs
REBOL [
Title: "Sends Email via CGI Form"
Date: 20-July-1999
File: %cgiemailer.r
Purpose: {
Uses a Web form to send an email message.
}
]
set-net [ [EMAIL PROTECTED] brestl.com none none none none ]
print "Content-Type: text/html^/" ;-- Required Page Header
print "<html><body><h2>Results:</h2>"
cgi: make system/standard/email decode-cgi system/options/cgi/query-string
either all [
email? try [cgi/to: load cgi/to]
email? try [cgi/from: load cgi/from]
][
print [<B> "Sending Email to" cgi/to </B>]
send/header cgi/to cgi/content cgi
][
print "<B>Invalid email to or from address</B>"
]
print "</body><html>"

Thanks,
Charles
 
 

Reply via email to