Page 1 of 1

LiveCode Server Email Example?

Posted: Fri Dec 29, 2017 10:40 pm
by keithglong
Hi All,

Would anyone happen to have a recent/working script you could share for sending emails via LiveCode Server?

I am playing around with LiveCode Server and am attempting to send an email via Sendmail. I have followed the example at:

http://lessons.livecode.com/m/4070/l/81 ... er-scripts

Although I followed this example exactly, I cannot seem to get it to work. Has something changed?

Note: I am using the script on my On-Rev account.

Thanks!

Sincerely,

-Boo
Gulf Breeze, Florida

Re: LiveCode Server Email Example?

Posted: Sat Dec 30, 2017 12:26 am
by keithglong
Strike that; got it working. (Sometimes I think the only reason I post inquiries is because I seem to always figure it out right after posting. If I don't post, then the problem lingers. Something going on in the Universe...)

;-)

Cheers,

- Boo
Gulf Breeze, Florida

Re: LiveCode Server Email Example?

Posted: Sat Dec 30, 2017 2:09 am
by bogs
Congratulations (but know just how you feel, was about to post asking how to save as specific file version from the msgbox, figured it out just before hitting post).

Re: LiveCode Server Email Example?

Posted: Thu Feb 15, 2018 5:32 pm
by jackrarick
Could you share what you needed to do - or what you forgot to do - to make the email relay work?

I THINK I followed all the directions etc but am getting a "Server Error 500". The mail is sent - but I get the error back in my app. Now, I could just skip the part where the server sends the error message and hope that things just take care of themselves - but I've done that with my car and it seldom works out!

Thanks in advance - and thanks to anyone else who might be able to shed some light on why I might be getting a Server 500 error.

Jack Rarick
Seattle WA

Re: LiveCode Server Email Example?

Posted: Thu Feb 15, 2018 11:19 pm
by keithglong
Hi Jack,

For me personally, I wan't including the following function correctly (the version below seems to be correct and works okay for me):

Code: Select all

function shellEscape pText
repeat for each char tChar in "\`!$" & quote
replace tChar with ("\" & tChar) in pText
end repeat
return pText
end shellEscape
If you continue to experience problems, then you might want to post your email code to the forum for folks to take a look at...

Best regards,

Keith "Boo" Long
Gulf Breeze, Florida