Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

CGI Problem

 [1/4] from: rsaathoff::datajunction::com at: 20-Jul-2001 16:23


Hi all, I was writing up a form and used REBOL to do the CGI. The form will simply collect the data and send the data in an email to the site admin. I have a problem when the execution gets to sending the email. I get a Rebol error that says: ** User Error: No network server for smtp is specified. ** Where: smtp-port: open [scheme: 'smtp] if email? " This isn't live on the web yet, I'm still testing it using Apache on my machine. Has anyone else ran into this issue, or know how it can be fixed? TIA, Ryan

 [2/4] from: ryanc:iesco-dms at: 20-Jul-2001 14:32


Hey Ryan, I am pretty sure I have seen this before when rebol cant find the user.r file. Run a 'set-net from your cgi, or make sure rebol can find the user.r file. --Ryan Cole Ryan wrote:
> Hi all, > I was writing up a form and used REBOL to do the CGI. The form will simply collect the data and send the data in an email to the site admin. I have a problem when the execution gets to sending the email. I get a Rebol error that says: ** User Error: No network server for smtp is specified. ** Where: smtp-port: open [scheme: 'smtp] if email? " This isn't live on the web yet, I'm still testing it using Apache on my machine. Has anyone else ran into this issue, or know how it can be fixed?
<<quoted lines omitted: 4>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400

 [3/4] from: tim:johnsons-web at: 20-Jul-2001 16:17


Hi Ryan:
> Hi all, > I was writing up a form and used REBOL to do the CGI.
<<quoted lines omitted: 5>>
>This isn't live on the web yet, I'm still testing it using Apache on my machine. >Has anyone else ran into this issue, or know how it can be fixed?
1)Do you have user.r set up with complete server names via 'set-net ? If so, check to make sure you don't have a misconfigured copy of user.r in the same directory as your script HINT: you can run set-net directly from your script. Also: 2)You should also have your code set up to test the server. such a test would then result in chosing a different SMTP server depending on what machine you run it from. Again, you could use a call to set-net from your script to do this I hope this helps somewhat... tj

 [4/4] from: rsaathoff:datajunction at: 23-Jul-2001 12:51


It worked! All I had to do was a set-net at the beginning of the script. Thanks! Ryan ----- Original Message ----- From: "Ryan Cole" <[ryanc--iesco-dms--com]> To: <[rebol-list--rebol--com]> Sent: Friday, July 20, 2001 4:32 PM Subject: [REBOL] Re: CGI Problem
> Hey Ryan, > I am pretty sure I have seen this before when rebol cant find the user.r
file. Run a 'set-net from your cgi, or make sure rebol can find the user.r file.
> --Ryan Cole > > Ryan wrote: > > > Hi all, > > I was writing up a form and used REBOL to do the CGI. The form will
simply collect the data and send the data in an email to the site admin. I have a problem when the execution gets to sending the email. I get a Rebol error that says: ** User Error: No network server for smtp is specified. ** Where: smtp-port: open [scheme: 'smtp] if email? " This isn't live on the web yet, I'm still testing it using Apache on my machine. Has anyone else ran into this issue, or know how it can be fixed?

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted