Fix - Correo
This commit is contained in:
parent
ab31399670
commit
99ae0181c1
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue