TLS for sending via SMTP through gmail

For business applications, we should be able to send emails from our apps. I spent a day trying to make an app email a .CSV file through gmail and then discovered that gmail’s smtp server requires a secure socket and Corona does not support that. Anything that would make it easier to import files from external sources (PC or Mac) would be highly desireable. [import]uid: 104085 topic_id: 29949 reply_id: 329949[/import]

I did see that others on the boards have been asking for native email support for sometime. It’s possible that this request should be grouped with those. [import]uid: 104085 topic_id: 29949 reply_id: 120113[/import]

Secound question about SSL on forum. You have native email support in Corona - http://www.coronalabs.com/blog/2012/01/03/composing-email-and-sms-in-corona/
SSL support can be found in LuaSec library. [import]uid: 12704 topic_id: 29949 reply_id: 120125[/import]

As near as I can find, Corona doesn’t support LuaSec (Require(“ssl”) does not work for one).

It does however support LuaSocket, which has the SMTP protocol.
As linked to by gtatarkin, you can jump to the iOS Mail App, with a precomposed message, which should support anything e-mail related.

If it requires TLS, it looks like you’d need native support(Enterprise), in which case you can just hook up LuaSec, or to use the built in apps.

Depending on your use case, it’s possible you could take advantage of a secondary server for this operation, which would effectively dispatch your messages to their intended recipients, but that could be a lot of extra work and mechanics for minimal gain. [import]uid: 134101 topic_id: 29949 reply_id: 120128[/import]

Thank you for the response. Your link:
http://www.coronalabs.com/blog/2012/01/03/composing-email-and-sms-in-corona/

looks promising. I will give that a try. I do realize that SSL support can be found in the LuaSec library, but apparently that library is not supported in Corona, according to this post:
http://developer.coronalabs.com/forum/2011/03/04/smtp-help#comment-63818

And that was in this thread:
http://developer.coronalabs.com/forum/2011/03/04/smtp-help

Now, if the link you gave me works, I could care less about the SSL. I just want my app to be able to send an email with an attachment with the least amount of effort from the user. Thanks again! [import]uid: 104085 topic_id: 29949 reply_id: 120130[/import]

@Ntero: did you try to download and include this lib inside your project?

@michael714: I find my own way to deal with NTLM verification for SOAP services do SSL/TTL can be done in Corona as well. [import]uid: 12704 topic_id: 29949 reply_id: 120133[/import]

gtatarkin,
Your skills are way above mine and I can’t spend another week trying to figure out how to do something above my pay grade, so no NTLM or SOAP or SSL/TTL for me. However…

Your suggestion about the native.showPopup:
http://www.coronalabs.com/blog/2012/01/03/composing-email-and-sms-in-corona/

was absolutely genius. It worked like a charm. So smooth and easy. I used native.showPopup to email myself the .CSV file from my Droid X. It was beautiful. It was simple. It was like magic. I may now go on and live life again. Your kung fu is the best! So, gtatarkin, I love you, I love you, I love you!

Thanks! [import]uid: 104085 topic_id: 29949 reply_id: 120183[/import]

I did see that others on the boards have been asking for native email support for sometime. It’s possible that this request should be grouped with those. [import]uid: 104085 topic_id: 29949 reply_id: 120113[/import]

Secound question about SSL on forum. You have native email support in Corona - http://www.coronalabs.com/blog/2012/01/03/composing-email-and-sms-in-corona/
SSL support can be found in LuaSec library. [import]uid: 12704 topic_id: 29949 reply_id: 120125[/import]

As near as I can find, Corona doesn’t support LuaSec (Require(“ssl”) does not work for one).

It does however support LuaSocket, which has the SMTP protocol.
As linked to by gtatarkin, you can jump to the iOS Mail App, with a precomposed message, which should support anything e-mail related.

If it requires TLS, it looks like you’d need native support(Enterprise), in which case you can just hook up LuaSec, or to use the built in apps.

Depending on your use case, it’s possible you could take advantage of a secondary server for this operation, which would effectively dispatch your messages to their intended recipients, but that could be a lot of extra work and mechanics for minimal gain. [import]uid: 134101 topic_id: 29949 reply_id: 120128[/import]

Thank you for the response. Your link:
http://www.coronalabs.com/blog/2012/01/03/composing-email-and-sms-in-corona/

looks promising. I will give that a try. I do realize that SSL support can be found in the LuaSec library, but apparently that library is not supported in Corona, according to this post:
http://developer.coronalabs.com/forum/2011/03/04/smtp-help#comment-63818

And that was in this thread:
http://developer.coronalabs.com/forum/2011/03/04/smtp-help

Now, if the link you gave me works, I could care less about the SSL. I just want my app to be able to send an email with an attachment with the least amount of effort from the user. Thanks again! [import]uid: 104085 topic_id: 29949 reply_id: 120130[/import]

@Ntero: did you try to download and include this lib inside your project?

@michael714: I find my own way to deal with NTLM verification for SOAP services do SSL/TTL can be done in Corona as well. [import]uid: 12704 topic_id: 29949 reply_id: 120133[/import]

gtatarkin,
Your skills are way above mine and I can’t spend another week trying to figure out how to do something above my pay grade, so no NTLM or SOAP or SSL/TTL for me. However…

Your suggestion about the native.showPopup:
http://www.coronalabs.com/blog/2012/01/03/composing-email-and-sms-in-corona/

was absolutely genius. It worked like a charm. So smooth and easy. I used native.showPopup to email myself the .CSV file from my Droid X. It was beautiful. It was simple. It was like magic. I may now go on and live life again. Your kung fu is the best! So, gtatarkin, I love you, I love you, I love you!

Thanks! [import]uid: 104085 topic_id: 29949 reply_id: 120183[/import]