Re: Euphoria CGI and email

new topic     » goto parent     » topic index » view thread      » older message » newer message

Michelle Rogers wrote:
> Can someone give me a quick primer on how to email using cgi?  What I want
> is to be able to email a password, if someone clicks that they have
> forgotten their password.

On FreeBSD and Linux I use Euphoria's system() command
with either "mail" or "sendmail". See the man pages.

On Windows I'm using system() and a free "sendmail" from
http://www.dato.at/modules.php?op=modload&name=Downloads&file=index&req=viewsdownload&sid=1

I've used it with Apache on Windows 2000.
You just have to set up a couple of input files, 
then run "sendmail" with system(). See the readme file.
The actual statement I use is:
system(sprintf(
"sendmail /FROM=%s /TO=totemp.txt /REF=%s /MESSAGE=bodytemp.txt
   /HOST=127.0.0.1 > NUL",
   {from_address, subject}), 2)


Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu