Pierre, Thanks! I am doing the same thing (even the same escapeShellArg and setQuote). The big delay is when I send mail to other domains than on-rev.com. I would think that the 10 second timeout in the LC client should be able to be increased somehow.
Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Pierre Sahores Sent: Monday, July 06, 2015 7:30 PM To: How to use LiveCode Subject: Re: put url web service timeout Should this sendmail script helps ? function emailLC7 pTo, pSub, pMsg, pFrom, pFromName local tMsg put "From:" && pFromName && "<" & pFrom & ">" & cr & "To:" && pTo & cr & "Subject:" && pSub & cr & "Content-Type: text/html; charset=" & setQuote("utf-8") & cr & cr & pMsg into tMsg put the tempName into tFile put tMsg into url ("binfile:" & tFile) put "/usr/sbin/sendmail -oi -t -f" && setQuote(escapeShellArg("<" & tFromEmail & ">")) && "<" && setQuote(escapeShellArg(tFile)) into tCmd put shell(tCmd) into tOutput delete file tFile end emailLC7 function escapeShellArg pString repeat for each char tChar in ("\`!$" & quote) replace tChar with ("\" & tChar) in pString end repeat return pString end escapeShellArg function setQuote texte return quote & texte & quote end setQuote Works fine against LC Server 7 note : pTo param can handle multiple emails in using « , » as the itemdelimiter -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com > Le 6 juil. 2015 à 22:32, Ralph DiMola <rdim...@evergreeninfo.net> a écrit : > > The > reason I am testing long delays is to debug why my sendmail request to > the web service was returning empty. Sendmail on the server is taking > 11 seconds to finish so I never received a return status. _______________________________________________ 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 _______________________________________________ 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