GUI / lua-resty-mail

A high-level, easy to use, and non-blocking email and SMTP library for OpenResty.
MIT License
66 stars 16 forks source link

/usr/local/openresty/site/lualib/resty/mail/smtp.lua:155: closed #3

Closed sahuguet closed 5 years ago

sahuguet commented 6 years ago

I tried the code sample against GMail using resty command-line tool and I get this error: /usr/local/openresty/site/lualib/resty/mail/smtp.lua:155: closed

Same error when I try from within nginx.

I checked my GMail config (server, port, credentials) against some Python code and it works fine.

GUI commented 6 years ago

@sahuguet: Sorry for the delay. Can you provide more details on how you're trying to connect (eg, what port, whether starttls is being used, etc)?

Or as another test, could you try creating this test-mail.lua file: https://gist.github.com/GUI/4ec6e695b400d8128b5708c2acf4e8fa, fill in your own Gmail username and password, and then try running resty test-mail.lua? I was just able to successfully run this test, so I'm curious if you'd see the same closed error with this example.

GUI commented 5 years ago

I'm going to close this, but give a shout if this is still an issue with the latest version and you can provide more debug details.