Lua is a scripting language that is fast and has a programming paradigm that is easy to learn.

I was trying to test an email sending process using a new language. I have tried in PHP using sendmail program. Lua works differently and uses OpenResty.

Clone this repository:

git clone https://github.com/GUI/lua-resty-mail

Then follow the instructions on the README.md page and change the make test command header.

Comment out — exclude_tags=integration_externaland include — exclude_tags=integration_internal

This will execute the spec file mail_integration_internal_spec.lua

Set up the environment details for SMTP Gmail Account and change the from address.

Your GMail Account

  1. Navigate to your Google Account.
  2. Select Security.
  3. Under “Signing in to Google,” select App Passwords.

--

--

Aswin Vijayakumar

Aswin Vijayakumar

Writer | DS Researcher | Software Developer | Intel Edge AI Scholar and Developer | Top 10 20/20 ADLINK