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.
— exclude_tags=integration_externaland include
This will execute the spec file
Set up the environment details for SMTP Gmail Account and change the from address.
Your GMail Account
- Navigate to your Google Account.
- Select Security.
- Under “Signing in to Google,” select App Passwords.
Then, Click Generate.
Now, add your password to the Lua program and enjoy sending emails.