mail.smtp
import mail
Everything here is re-exported by
import mailis enough and the names are called asmail.*. Importingmail.smtpon its own works too and reaches the same definitions.
SMTP: the protocol that moves mail from where it was written to where it is kept.
Both ends are here. SmtpClient hands messages to a server;
SmtpServer is the server, and decides what to accept through handlers
of your own.
import mail.smtp { SmtpClient }
var server = SmtpClient.connect('smtp://mail.example.com', {
username: 'reports',
password: secret,
})
server.send(note, nil)
server.quit()
Submodules
| Module | Reached as | Summary |
|---|---|---|
mail.smtp.client | mail.* | The sending end of SMTP. |
mail.smtp.server | mail.* | The receiving end of SMTP. |
2026, Richard Ore and Zuri contributors