Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 434485df
authored
2020-07-19 13:19:21 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Correccion
1 parent
2bd38b73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
services.py
services.py
View file @
434485d
...
...
@@ -124,11 +124,15 @@ class Mail(ServiceBase):
def
send
(
self
,
data
,
stadotel
,
stadomail
):
#separo si es smtp o si es sendgrid api
info
=
json
.
loads
(
data
[
Table
.
info
])
try
:
if
info
[
"smtp"
][
"host"
]
==
"MAILMASIVO"
:
host
=
info
[
"smtp"
][
"host"
]
except
:
host
=
False
try
:
if
host
==
"MAILMASIVO"
:
res
=
n
=
self
.
sendGrid
(
info
[
"smtp"
],
data
)
return
(
res
)
except
:
pass
return
(
False
)
res
=
self
.
_sendClasico
(
data
,
stadomail
)
return
(
res
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment