Using Sarah's Reichelt SMTP library

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
sphere
Posts: 965
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Using Sarah's Reichelt SMTP library

Post by sphere » Fri Oct 03, 2014 2:08 pm

Hi,

does anyone know if copying the script of Sarah Reichelts SMTP library is enough to get it working in your own script?
Or does the library stack has to be loaded via the Stand Alone Setting?

i have a handler failure
button "Send": execution error at line 124 (Handler: can't find handler) near "sSMTPconnectToServer", char 1

and i don't understand because i copied all into my script and just changed so that no authentication has to be filled in and the email server is allready a constant factor

The smtp library on itself works ok

Also it is not easy a clear answer to find on how to use libraries in your own stacks, i eady in the manaul pdf a few slight things but... a bit of help would be much appreciated
https://www.jj-s.nl
https://www.multifoodshop.nl

pink
Posts: 252
Joined: Wed Mar 12, 2014 6:18 pm

Re: Using Sarah's Reichelt SMTP library

Post by pink » Fri Oct 03, 2014 3:12 pm

the simplest way to use it would be to copy the library into your stack as a substack

then, when you are ready to use it, add this command:

if "libSmtp253" is not among the lines of the stacksInUse then
start using stack "libSmtp253"
end if

this will put the stack into the message path
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

sphere
Posts: 965
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Using Sarah's Reichelt SMTP library

Post by sphere » Fri Oct 03, 2014 4:16 pm

Thanks for your comment Pink.

Question: if i do so like you say, it woould then switch over to that stack? and so the user has to manually enter all?

Now i have a script that is allready asking for it and uploads the file which must be attached to the email also to a server
I have a send button which then checks if all is entered and this same button should send it via the library script without having to see it.

Should be possible right?

Is there also something hidden or extras external or a plugin in the library smtp stack? which don't work if you just copy the (or partly without all field for authentication) the script?

Thanks for your help !
https://www.jj-s.nl
https://www.multifoodshop.nl

Post Reply

Return to “Talking LiveCode”