Fix - Correo

This commit is contained in:
Mauricio Baeza 2018-01-13 13:37:19 -06:00
parent ab31399670
commit 99ae0181c1
2 changed files with 7 additions and 3 deletions

View File

@ -262,9 +262,8 @@ class SendMail(object):
return self._error
def _login(self):
servers_ssl = ('smtp.gmail.com', '')
try:
if self._config['ssl'] and 'gmail' in self._config['servidor']:
if self._config['ssl'] and 'gmail' or 'outlook' in self._config['servidor']:
self._server = smtplib.SMTP(
self._config['servidor'],
self._config['puerto'], timeout=10)

View File

@ -21,8 +21,13 @@ server {
alias /opt/empresa-libre/static;
}
if ($http_user_agent ~* (python|curl) ) {
return 404;
}
# Necesario para Let's Encrypt
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /opt/www;
}
}