Demostración de la biblioteca SMTP en LiveCode

I'm trying to build a mobile app that when user presses a button, it sends emails direct to an email address. I found that Sarah's SMTP library demo do this. I try to put on the server the smtp.gmail.com but Iv'e got this error:

> 5.7.0 must issue a starttls command first

Gracias de antemano!

preguntado el 31 de julio de 12 a las 11:07

4 Respuestas

I believe that smtp.gmail.com uses SSL. Sarah's library doesn't do this. You need to authenticate with your correct Gmail user name and password and you might want to try executing the LiveCode syntax

libUrlSetSSLVerification false

You need to do this before you start using Sarah's lib. I wonder if you also need to fiddle with the default headers. For this, you need to edit the script of the lib.

Respondido 01 Oct 12, 15:10

The server you are connecting to requires you to authenticate.

Respondido 25 ago 12, 16:08

Doesn't sarah's library require sockets? So on IOS (until sockets support is complete with the new changes) I think you would have to use the rresockets external and adjust sarahs library to use the externals functionality rather than LC sockets.

For android, also no sockets and no rresockets either, though these will hopefully be implemented before too long.

A workaround would be to have an email sending script on a web server, post the data to the right address and have the script send the email.

Of course for desktop sockets are available so sarahs should work fine for that (as per the other suggestions)

respondido 09 mar '13, 18:03

This page has a sample SMTP stack. I haven't tested it yet, but people have said it works,just have to make sure ports are set up.

http://www2.altuit.com/webs/altuit2/RunRev/Downloads.htm

Respondido el 19 de junio de 14 a las 20:06

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.