Sitelet https://github.com/msgwing/ZeroSMTP/issues/28
Skip to content

Add a Lua example (lua-zerosmtp.lua) #28

Description

@msgwing

Lua is common on embedded/IoT devices and routers (OpenWRT, NodeMCU/ESP-based firmware) — a Lua example would serve the IoT/embedded audience this repo already claims in the README, alongside the C example requested in #23.

What's needed (see CONTRIBUTING.md for the full checklist):

  • lua-zerosmtp.lua at the repo root, reading ZEROSMTP_USERNAME, ZEROSMTP_PASSWORD, ZEROSMTP_FROM, ZEROSMTP_TO (optionally ZEROSMTP_SUBJECT) from the environment.
  • LuaSocket + LuaSec (for TLS) is the standard combo and is available on OpenWRT via opkg — please note any embedded-target caveats in comments if they come up.
  • A syntax-check job added to .github/workflows/lint.yml (luac -p).
  • A row in the Code Examples table in both README.md and README.pl.md.

A PR that only adds the example file is still very welcome.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions