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

2008-08-07 Thread Alex Shaw

Hi

I agree but I have had past problems using sendmail (particularly with 
attachments) on some web servers.


The solution that's worked best for me is LibCGI and Shao Sean's libSMTP 
 libEmailEncode. All in rev :)


regards
alex

Andre Garzia wrote:

Folks,

using smtp routines from a cgi is not the best solution. If the server
blocks, you end up eating server resources and many hosts will not
allow your cgi to open sockets to outside servers.

RevOnRockets has a library called RocketsSendmail that wraps around
the sendmail common unix tool to send emails, you can simply download
and use that instead of using a php file. I can assist

Cheers
andre


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread John Patten
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 
SUSD
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread Eric Chatonet

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: [EMAIL PROTECTED]/



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread Mark Smith
I'd also point out that it should also be possible to a) send the  
mail directly from the student to the teacher and b) use a rev CGI on  
the server without a php script.


Best,

Mark

On 4 Aug 2008, at 17:06, Eric Chatonet wrote:


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: [EMAIL PROTECTED]/



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread jbv


John ,



 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?


the answer is yes. You don't even need to create a file and then delete it...
I've been doing that for years : my Rev cgi script calls a php lib with all the
requested parameters... I'm using a php lib because I found one very useful
on some website and didn't want to bother writing my own...
And I'm using a Rev cgi script because, apart from sending emails, I have
numerous tasks to do that are easier to code in Rev than in php, but you can
make it simpler : just send a POST request from your stack to a simple php
script on your server...

Best,
JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread Mark Schonewille

Hi Mark,

It looks like you want to use Sarah's or Sean's SMTP library, to send  
e-mail directly from within Revolution, using your own e-mail server.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 4 aug 2008, at 18:14, Mark Smith wrote:

I'd also point out that it should also be possible to a) send the  
mail directly from the student to the teacher and b) use a rev CGI  
on the server without a php script.


Best,

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread Mark Smith
Yes, the SMTP libs would do the job from within Revolution, and on  
the server one could also use a simple shell call to sendmail  
(assuming it's some kind of unix/linux).


Best,

Mark


On 4 Aug 2008, at 18:17, Mark Schonewille wrote:


Hi Mark,

It looks like you want to use Sarah's or Sean's SMTP library, to  
send e-mail directly from within Revolution, using your own e-mail  
server.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x- 
talk.com/server.html for more info.


On 4 aug 2008, at 18:14, Mark Smith wrote:

I'd also point out that it should also be possible to a) send the  
mail directly from the student to the teacher and b) use a rev CGI  
on the server without a php script.


Best,

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

2008-08-04 Thread Andre Garzia
Folks,

using smtp routines from a cgi is not the best solution. If the server
blocks, you end up eating server resources and many hosts will not
allow your cgi to open sockets to outside servers.

RevOnRockets has a library called RocketsSendmail that wraps around
the sendmail common unix tool to send emails, you can simply download
and use that instead of using a php file. I can assist

Cheers
andre

On Mon, Aug 4, 2008 at 2:34 PM, Mark Smith [EMAIL PROTECTED] wrote:
 Yes, the SMTP libs would do the job from within Revolution, and on the
 server one could also use a simple shell call to sendmail (assuming it's
 some kind of unix/linux).

 Best,

 Mark


 On 4 Aug 2008, at 18:17, Mark Schonewille wrote:

 Hi Mark,

 It looks like you want to use Sarah's or Sean's SMTP library, to send
 e-mail directly from within Revolution, using your own e-mail server.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 http://economy-x-talk.com
 http://www.salery.biz

 Benefit from our inexpensive hosting services. See
 http://economy-x-talk.com/server.html for more info.

 On 4 aug 2008, at 18:14, Mark Smith wrote:

 I'd also point out that it should also be possible to a) send the mail
 directly from the student to the teacher and b) use a rev CGI on the server
 without a php script.

 Best,

 Mark

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution




-- 
http://www.andregarzia.com All We Do Is Code.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution