Network Problem. Help!

smtp = require(“socket.smtp”);

 

msg = smtp.message({

headers = {

to = “geowah05@gmail.com”,

subject = “Testing!”

},

body = “Testing LUA smtp socket.”

});

r, e = smtp.send({

from = “geowah12@gmail.com”,

rcpt = “geowah05@gmail.com”,

source = msg,

server = “smtp.gmail.com”,

port = “465”,

user = “”,

password = “”

});

if (e) then

print("Error: ", e)

end

 

---- part of the build.settings file for network permission. 

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

},

},

 

 

 

I’m following along with the Corona SDK book “Learn Corona SDK Game Development” by “Frank Zammetti”. The code above is technically his from an example in the book (page:214), except for the email accounts in the code. Those are my personal email accounts that I swapped in. After executing the code, I get a Timeout error. I already tried setting up the username and password. The build settings are configured to establish network permissions. I tried building the app and installing on phone, but I get no results either. I also tried with different email accounts and without ssl. I would simply like for the email to be sent. The code is very simple to understand and I already checked the email servers settings multiple times. I’m really confused on why this isn’t working. Please Help :confused:

 

Windows 7 Machine. x64

Corona SDK. v2014.2511

Trial version

According to this (slightly dated) thread, the LuaSocket that ships with Corona SDK does not support SSL (which gmail’s SMTP server requires)

http://forums.coronalabs.com/topic/5783-smtp-help/

Perhaps the book was written at a time when gmail supported SMTP without SSL / TLS?

Thanks for your response. I will have to look for a work around. Thanks again. @_memo

According to this (slightly dated) thread, the LuaSocket that ships with Corona SDK does not support SSL (which gmail’s SMTP server requires)

http://forums.coronalabs.com/topic/5783-smtp-help/

Perhaps the book was written at a time when gmail supported SMTP without SSL / TLS?

Thanks for your response. I will have to look for a work around. Thanks again. @_memo