Page 1 of 1

Using Sarah's Reichelt SMTP library

Posted: Fri Oct 03, 2014 2:08 pm
by sphere
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

Re: Using Sarah's Reichelt SMTP library

Posted: Fri Oct 03, 2014 3:12 pm
by pink
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

Re: Using Sarah's Reichelt SMTP library

Posted: Fri Oct 03, 2014 4:16 pm
by sphere
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 !