Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

smtpd : Add an SMTP daemon

The lino.modlib.smtpd plugin adds functionality for receiving emails.

It defines a recmail command, which starts an SMTP server.

All code snippets on this page (lines starting with >>>) are being tested as part of our development workflow. The following snippet initializes a demo project to use throughout this page.

>>> from lino_book.projects.noi1e.startup import *
recmail

recmail stands for “receive mail”. Starts a configurable SMTP server which forwards incoming mails to your Lino application. For every incoming mail it sends a mail_received signal. It is up to your application to decide what to with these mails.

If you want to run this as a daemon, you must do:

$ pip install python-daemon