Module telegram-bot-lua.adapters.email

email (SMTP) adapter for sending mail via luasocket.

[[

Functions

api.email.new(opts) create a new email sender instance.


Functions

api.email.new(opts)
create a new email sender instance.

Parameters:

  • opts table SMTP configuration options
    • host string SMTP server hostname
    • port number SMTP port (default 587)
    • username string SMTP username
    • password string SMTP password
    • tls boolean enable STARTTLS (default true)

Returns:

    table email instance with send, sendtext, sendhtml methods
generated by LDoc 1.5.0 Last updated 2026-04-07 21:37:15