1 from base import Setting, SettingSet
\r
2 from django.utils.translation import ugettext_lazy as _
\r
3 from django.forms.widgets import PasswordInput
\r
5 EMAIL_SET = SettingSet('email', _('Email Settings'), _("Email server and other email related settings."), 50)
\r
7 EMAIL_HOST = Setting('EMAIL_HOST', '', EMAIL_SET, dict(
\r
8 label = _("Email Server"),
\r
10 The SMTP server through which your application will be sending emails.
\r
14 EMAIL_PORT = Setting('EMAIL_PORT', 25, EMAIL_SET, dict(
\r
15 label = _("Email Port"),
\r
17 The port on which your SMTP server is listening to. Usually this is 25, but can be something else.
\r
21 EMAIL_HOST_USER = Setting('EMAIL_HOST_USER', '', EMAIL_SET, dict(
\r
22 label = _("Email User"),
\r
24 The username for your SMTP connection.
\r
28 EMAIL_HOST_PASSWORD = Setting('EMAIL_HOST_PASSWORD', '', EMAIL_SET, dict(
\r
29 label = _("Email Password"),
\r
31 The password for your SMTP connection.
\r
34 widget=PasswordInput))
\r
36 EMAIL_USE_TLS = Setting('EMAIL_USE_TLS', False, EMAIL_SET, dict(
\r
37 label = _("Use TLS"),
\r
39 Does your SMTP server uses TLS for authentication.
\r
43 DEFAULT_FROM_EMAIL = Setting('DEFAULT_FROM_EMAIL', '', EMAIL_SET, dict(
\r
44 label = _("Site 'from' email address"),
\r
46 The address that will show up on the 'from' field on emails sent by your website.
\r
50 EMAIL_SUBJECT_PREFIX = Setting('EMAIL_SUBJECT_PREFIX', '', EMAIL_SET, dict(
\r
51 label = _("Email subject prefix"),
\r
53 Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easilly set up a filter on theyr email clients.
\r