send mail from the on-rev server

paolo mazza mazzapaoloitaly at gmail.com
Fri Nov 26 16:16:34 EST 2010


You are right Pierre.

I have just found also this comprehensive tutorial about sending mails from
rev server:

http://lessons.runrev.com/spaces/lessons/buckets/814/lessons/8184-Sending-Emails-From-revServer-Scripts

Thank you .

All the best

Paolo

On Fri, Nov 26, 2010 at 8:41 PM, Pierre Sahores <psahores at free.fr> wrote:

> Paolo,
>
> Quoted from a previous mail (please search always the lists) ;-)
>
> > function  shellQuote pText
> > return quote & pText & quote
> > end  shellQuote
> >
> > function shellEscape pText
> >   repeat for each char tChar in "\`!$" & quote
> >       replace tChar with ("\" & tChar) in pText
> >   end repeat
> >   return pText
> > end shellEscape
> >
> > function mail pTo, pSub, pMsg, pFrom
> >  return shell("echo -e" &&  shellQuote(shellEscape(pMsg)) && "| mail -s"
> && shellQuote(shellEscape(pSub)) && shellQuote(shellEscape(pTo)) && "-- -f"
> && shellQuote(shellEscape(pFrom)) )
> > end mail
> >
> > get mail(pTo, pSub, pMsg, pFrom)
>
> Best,
>
> Pierre
>
> Le 26 nov. 2010 à 15:37, paolo mazza a écrit :
>
> > How can I send a mail from the on-rev server using the Rev/LiveCode
> server
> > script?
> > Thanks
> > Paolo
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
> --
> Pierre Sahores
> mobile : (33) 6 03 95 77 70
>
> www.woooooooords.com
> www.sahores-conseil.com
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list