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
- opts table SMTP configuration options