Commit 434485df by Tu Nombre

Correccion

1 parent 2bd38b73
...@@ -124,11 +124,15 @@ class Mail(ServiceBase): ...@@ -124,11 +124,15 @@ class Mail(ServiceBase):
def send(self,data,stadotel,stadomail):#separo si es smtp o si es sendgrid api def send(self,data,stadotel,stadomail):#separo si es smtp o si es sendgrid api
info = json.loads(data[Table.info]) info = json.loads(data[Table.info])
try: try:
if info["smtp"]["host"] == "MAILMASIVO": host = info["smtp"]["host"]
except:
host = False
try:
if host == "MAILMASIVO":
res = n = self.sendGrid(info["smtp"], data) res = n = self.sendGrid(info["smtp"], data)
return(res) return(res)
except: except:
pass return(False)
res = self._sendClasico(data,stadomail) res = self._sendClasico(data,stadomail)
return(res) return(res)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!