REV Send Email via CGI and mail.php script on the fly?

Eric Chatonet eric.chatonet at sosmartsoftware.com
Mon Aug 4 12:06:10 EDT 2008


Bonsoir John,

I remember a project I made three years ago that allowed the desktop  
based user to send an email to an author (the project was kind of  
eBook).
I used directly a php script on the server, passing the data and the  
address without having to set up any Rev CGI.
For security reasons, there was an exchange of password created on- 
the-fly between the server and the desktop based application.
I don't remember exactly how we made it but the point is:
. No CGI needed.
. No emailer needed of course.
The text was typed by the user and he had only to click 'Send to the  
author'.
Probably, somebody will chime in with details about the PHP script  
needed I have no longer on hand.

Le 4 août 08 à 17:52, John Patten a écrit :

> Hi All...
>
> Quick question, i have some projects that multiple teachers will  
> use with their students and I would like the student results to be  
> emailed  back to their teachers.
>
> I would like this process to be transparent to the student using  
> the stack. Can the following be done?
>
> I would like the rev project to "post" the student data and the  
> identified teacher's email address (saved is stack profile  
> settings) to the built in smtp mail.php script.  I know I can get  
> the rev stack to post to the mail.php file, but the mail php file  
> has to be dynamic is determining what teacher's email address to  
> send to.
>
> I was wondering if I could post the teacher's email address and the  
> student project data to a rev cgi project on the server, and then  
> have the rev cgi project, on the fly, create the mail.php file with  
> the correct email address and email the student data to the teacher?
>
> Essentially, the rev cgi project would create the mail.php file  
> based on the submitted email address, forward the student data to  
> the file it just  created (mail.php)  and then possibly delete the  
> mail.php file and wait for the next post.
>
> Can a rev cgi create a mail.php file, execute the php file by  
> forwarding data to it, and then delete the file it created, all in  
> one swoop?
>
> Thank you!
>
> John Patten

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list