smtp socket Error: Timeout

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

take a look at this:

http://stackoverflow.com/questions/11070623/lua-send-mail-with-gmail-account

take a look at this:

http://stackoverflow.com/questions/11070623/lua-send-mail-with-gmail-account