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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to