Documentation
¶
Overview ¶
ThingsDB module for sending emails using SMTP.
For example:
// Create the module (@thingsdb scope)
new_module('smtp', 'github.com/thingsdb/module-go-smtp');
// Configure the module
set_module_conf('smtp', {
host: 'my-smtp-host:587",
auth: ['my-optional-user', 'my-optional-password'],
});
// Use the module
smptp.send_mail(["alice@foo.bar"], {
from: "bob@foo.bar",
subject: "my subject",
plain: "my body",
}).else(|err| {
// error handling....
}));
Click to show internal directories.
Click to hide internal directories.