Modifying revErrorReport

Sannyasin Brahmanathaswami brahma at hindu.org
Sat Feb 20 22:38:27 EST 2016


And there is this;

sendGrid

https://sendgrid.com/pricing

if you can afford it.

API's on the server as as simple as

<?lc

function makeRecipientsString pRecipients
    repeat for each item x in pRecipients
       put "to[]=" & x & "&" after tRecipientsString
   end repeat
   return tRecipientsString
end makeRecipientsString

command sendGridMail pRecipients,pSubject,pBody,pFrom
put "api_user=##YourUserName## &"  into tEmail
put "api_key=##Yourkey##&" after tEmail
put makeRecipientsString(pRecipients) after tEmail
put ( "subject=" & urlEncode(pSubject) ) & "&" after tEmail
put ("text=" & urlEncode(pBody) ) & "&" after tEmail
put ("from=" & pFrom) after tEmail
put tEmail & cr & cr after url ("file:" & $_SERVER["DOCUMENT_ROOT"] & "/ddd/ddd-log.txt")
POST tEmail to URL "https://api.sendgrid.com/api/mail.send.json"
put it & cr & cr after url ("file:" & $_SERVER["DOCUMENT_ROOT"] & "/ddd/ddd-log.txt")
end  sendGridMail

Advantages: you don't need to run a mail server/service on your server at all. SMPT is simply off

The debugging mail games are over.


BR


On January 24, 2016 at 6:31:59 AM, tbodine (bodine at bodinetraininggames.com<mailto:bodine at bodinetraininggames.com>) wrote:

Hi Bill.
Yes, I'd really like to see your tutorial on that approach.
Thanks!
Tom


More information about the use-livecode mailing list