Installation | Maintenance | Beyond Lino

Configuring e-mail settings

A Lino site may want to send emails to the outside world in the following situations:

  • When a exception happens on the server code, we want to inform the site maintainer.

  • The Lino application may decide to send notification mails to site users. For example all applications that use lino.modlib.notify.

  • An end user may use the lino.modlib.outbox plugin to explicitly write emails.

Here are the Django settings for sending emails.

ADMINS

The list of the site managers

EMAIL_HOST

The SMTP host that will accept outgoing mails from this site.

See also https://docs.djangoproject.com/en/3.0/ref/settings/#email-host

EMAIL_HOST_USER

The user name to use when connecting to the EMAIL_HOST

See also https://docs.djangoproject.com/en/3.0/ref/settings/#email-host-user

EMAIL_HOST_PASSWORD

The password to use when connecting as EMAIL_HOST_USER to the EMAIL_HOST

See also https://docs.djangoproject.com/en/3.0/ref/settings/#email-host-password

SERVER_EMAIL

The address to use as sender in outgoing mails to the admins

DEFAULT_FROM_EMAIL

Default value for sender of outgoing emails when application code doesn’t specify it.

EMAIL_SUBJECT_PREFIX

The subject prefix to use for emails to the ADMINS.

See Django docs

Lino also uses this in lino.modlib.notify.