Add the Use TLS and Use SSL option to the Django
SMTP mailing profile backend. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -24,6 +24,28 @@ class DjangoSMTP(MailerBackend):
|
||||
'help_text': _('Port to use for the SMTP server.'),
|
||||
'required': False
|
||||
},
|
||||
{
|
||||
'name': 'use_tls', 'label': _('Use TLS'),
|
||||
'class': 'django.forms.BooleanField', 'default': False,
|
||||
'help_text': _(
|
||||
'Whether to use a TLS (secure) connection when talking to '
|
||||
'the SMTP server. This is used for explicit TLS connections, '
|
||||
'generally on port 587.'
|
||||
), 'required': False
|
||||
},
|
||||
{
|
||||
'name': 'use_ssl', 'label': _('Use SSL'),
|
||||
'class': 'django.forms.BooleanField', 'default': False,
|
||||
'help_text': _(
|
||||
'Whether to use an implicit TLS (secure) connection when '
|
||||
'talking to the SMTP server. In most email documentation '
|
||||
'this type of TLS connection is referred to as SSL. It is '
|
||||
'generally used on port 465. If you are experiencing '
|
||||
'problems, see the explicit TLS setting "Use TLS". Note '
|
||||
'that "Use TLS" and "Use SSL" are mutually exclusive, '
|
||||
'so only set one of those settings to True.'
|
||||
), 'required': False
|
||||
},
|
||||
{
|
||||
'name': 'user', 'label': _('Username'),
|
||||
'class': 'django.forms.CharField', 'default': '',
|
||||
|
||||
Reference in New Issue
Block a user