LiveCode Server Email Example?

Are you using LiveCode to create server scripts or CGIs?

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 345
Joined: Sun Jul 03, 2011 2:04 am
Location: Gulf Breeze, Florida

LiveCode Server Email Example?

Post by keithglong » Fri Dec 29, 2017 10:40 pm

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

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 345
Joined: Sun Jul 03, 2011 2:04 am
Location: Gulf Breeze, Florida

Re: LiveCode Server Email Example?

Post by keithglong » Sat Dec 30, 2017 12:26 am

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

bogs
Posts: 1621
Joined: Sat Feb 25, 2017 10:45 pm

Re: LiveCode Server Email Example?

Post by bogs » Sat Dec 30, 2017 2:09 am

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).
ImageImage

jackrarick
Posts: 7
Joined: Wed Jan 21, 2015 5:17 am

Re: LiveCode Server Email Example?

Post by jackrarick » Thu Feb 15, 2018 5:32 pm

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

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 345
Joined: Sun Jul 03, 2011 2:04 am
Location: Gulf Breeze, Florida

Re: LiveCode Server Email Example?

Post by keithglong » Thu Feb 15, 2018 11:19 pm

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

Post Reply

Return to “CGIs and the Server”