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