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.
Note
Code snippets in this document (lines starting with >>>
) get tested
as part of our development workflow. The following
initialization snippet tells you which demo project is being used.
>>> 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