Emailing from within Revolution

2007-10-15 Thread Peter Alcibiades
[without using an email client..]

I've never done this, but when it looked like I was going to need to, I 
planned to use the mail command from the shell in Linux.  Presumably OSX has 
this also?

http://www.shelldorado.com/articles/mailattachments.html

is a fairly complete account of how to do it.  Seems fairly simple, you just 
drop into the shell and pass the command. There are also quite a few shell 
scripts posted if you google for them.

But maybe there is a reason why this is not an intelligent solution?

Peter
___
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: Emailing from within Revolution

2007-10-15 Thread Sarah Reichelt
On 10/14/07, Paul Gabel <[EMAIL PROTECTED]> wrote:
> As an intermediate Revolution user, I'd like my standalone to be able
> to send an email by script completely within Revolution, not, as
> revMail does, require the user to explicitly send it from the email
> application (in my case — Apple's Mail program). I've looked at Shao
> Sean's libSMTP and Altuit's altEmailHarness, but these look rather
> complicated for me and were written at the end of 2005. Is there
> anything easier, more "built-in," and more recent? Thank you.

An option that I have used in one app is to have the Rev program post
to a CGI script on a web site. The script then uses sendmail to create
an email. The advantage of this is that it doesn't need the user's own
email client and it desn't require them to enter the address for an
SMTP server. The data posted to the CGI script includes the "To:",
"From:" & "Subject:" headers are the start, and the rest just becomes
the body of the email.

One caveat: my app is very low traffic. I don't know how this would scale.

Cheers,
Sarah
___
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: Emailing from within Revolution

2007-10-13 Thread Shao Sean
Just a quick note for anyone who does look at libSMTP and thinks that  
it is complicated. Yes, the code to do everything is pretty  
complicated, but the public API is simple and there are only 3  
commands that you need to learn.


smtpOpen  -- opens the connection to the server
smtpSend  -- sends the email message from your program to the mail  
server

smtpClose -- closes the connection to the mail server

I choose this method of doing it to allow for sending multiple  
emails, through the same server, without having to open and close a  
connection for each email sent. If you need a hand integrating  
libSMTP into your program, feel free to contact us

< support AT shaosean DOT tk >

-Sean
___
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: Emailing from within Revolution

2007-10-13 Thread Mark Smith
Paul, this is a basic script I use with Shao Sean's library, and  
which seems to work well. Note that I there is no checking/validating  
of the inputs, and I haven't provided for a subject line or tried to  
do attachments or anything...


function sendAnEmail pSmtpServer, pFrom, pTo, pMsg
  put 0 into tries

  repeat until isOpen or tries > 5
put smtpOpen(pSmtpServer,"","","","") into isOpen
add 1 to tries
  end repeat
  if isOpen then
put smtpSend(pFrom, pTo, pMsg) into tSent
put smtpClose() into tClosed
return isOpen & comma & tries & comma & tSent & comma & tClosed
  else
return "couldn't send email: " & tries && "tries"
  end if

end sendAnEmail

pSmtpServer is the outgoing server to use eg  [EMAIL PROTECTED]
pFrom is your email address, pTo is the recipients email address, and  
pMsg is, well, the message.


Best,

Mark

On 13 Oct 2007, at 21:32, Paul Gabel wrote:

As an intermediate Revolution user, I'd like my standalone to be  
able to send an email by script completely within Revolution, not,  
as revMail does, require the user to explicitly send it from the  
email application (in my case — Apple's Mail program). I've looked  
at Shao Sean's libSMTP and Altuit's altEmailHarness, but these look  
rather complicated for me and were written at the end of 2005. Is  
there anything easier, more "built-in," and more recent? Thank you.


Paul Gabel___
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: Emailing from within Revolution

2007-10-13 Thread Björnke von Gierke


On 13 Oct 2007, at 21:32, Paul Gabel wrote:

As an intermediate Revolution user, I'd like my standalone to be able 
to send an email by script completely within Revolution, not, as 
revMail does, require the user to explicitly send it from the email 
application (in my case — Apple's Mail program). I've looked at Shao 
Sean's libSMTP and Altuit's altEmailHarness, but these look rather 
complicated for me and were written at the end of 2005. Is there 
anything easier, more "built-in," and more recent? Thank you.


Paul Gabel


Simpler I could use too, but newer? eMail is older then almost any 
other still used internet technology, and hasn't changed since decades.


As for different, there's also Sarah Troz's eMail library. One can find 
it under www.troz.net/Rev/


--

official ChatRev page:
http://chatrev.bjoernke.com

Chat with other RunRev developers:
go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev";
___
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


Emailing from within Revolution

2007-10-13 Thread Paul Gabel
As an intermediate Revolution user, I'd like my standalone to be able  
to send an email by script completely within Revolution, not, as  
revMail does, require the user to explicitly send it from the email  
application (in my case — Apple's Mail program). I've looked at Shao  
Sean's libSMTP and Altuit's altEmailHarness, but these look rather  
complicated for me and were written at the end of 2005. Is there  
anything easier, more "built-in," and more recent? Thank you.


Paul Gabel___
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