Re: Euphoria CGI and email
- Posted by Robert Craig <rds at RapidEuphoria.com> Jun 30, 2004
- 470 views
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