[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to link CGI scripts and PLT libraries?



Quoting Francisco Solsona:
> ,--------------------
> | (unit/sig ()
> |  (import cgi^ mzlib:sendmail^)
> |   
> |   ... the CGI thing using send-mail-message/port
> |  )
> `--------------------
> 
> Now, if I go to: http://.../cgi-bin/foo, it (almost) work, except that
> I cannot use send-mail-message/port, defined? returns #f on it from
> within the dispatch unit, huh?

`send-mail-message/port' is bound within the unit, but not in the
top-level namespace, so `defined?' will report #f.

I don't quite understand why you can't use `send-mail-message/port',
though. Are you using `eval' in handling the CGI request?

Matthew