I tried adding set-net to the script and I do have a user.r file that rebol
created when I ran it on the server. Here is the script which I just edited
(I downloaded it from the Rebol site) it to use my info:
----------------------------------
#!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>"
----------------------------------
This may be a dumb question but, what are the advantages of Rebol over Perl?
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 11, 1999 2:34 PM
Subject: [REBOL] IIS 4.0 and cgiemailer.r Re:(2)
> Hi there,
>
> putting a CGI specific user.r in the same directory as the
> CGI script is another solution that solved the problem here.
>
> Tom
>
>
> [EMAIL PROTECTED] wrote:
> >
> > Hi Charles,
> >
> > I have it running on IIS..
> >
> > If you use browse-cgi, you will probably see that none of your user.r
settings
> > are loaded, when a script is run on the server.
> >
> > Add a set-net statement (copy it from your user.r) to the cgimail.r
script (or
> > read it in from another file) and it will work fine.
> >
> > Cheers,
> >
> > Allen K
> >
> > ----- Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 12, 1999 1:08 AM
> > Subject: [REBOL] IIS 4.0 and cgiemailer.r
> >
> > Hello All,
> >
> > I believe I have setup IIS correctly to run the Rebol program and it is
setup to
> > send e-mail -- I can send e-mail using Rebol and the command "do
%semail.r".
> >
> > I edited the cgiemailhtml.r script to create an HTML page with my
domain. When I
> > browse to that page I can open it but, when I hit the "Send Message"
button the
> > browser reports that is has contacted the server and is waiting for a
reply it
> > will eventually timeout.
> >
> > Anybody got this to work or can send e-mail from a web page? I would
greatly
> > appreciate the help.
> >
> > Thanks,
> > Charles
>