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 68a8aca2
authored
2020-07-19 16:36:38 +0000
by
Juan Pablo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
casi
1 parent
a1b694ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
services.py
services.py
View file @
68a8aca
...
...
@@ -128,7 +128,7 @@ class Mail(ServiceBase):
except
:
host
=
False
if
host
==
"MAILMASIVO"
:
res
=
n
=
self
.
sendGrid
(
info
[
"smtp"
]
,
data
)
res
=
n
=
self
.
sendGrid
(
info
,
data
)
return
(
res
)
res
=
self
.
_sendClasico
(
data
,
stadomail
)
return
(
res
)
...
...
@@ -197,6 +197,7 @@ class Mail(ServiceBase):
"subject"
:
msg
[
'Subject'
],
"content"
:
[{
"type"
:
"text/plain"
,
"value"
:
str
(
msg
[
"Body"
])}],
"attachments"
:
msg
[
"Adjuntos"
]}
#import ipdb; ipdb.set_trace()
requests
.
post
(
url
=
"https://api.sendgrid.com/v3/mail/send"
,
data
=
json
.
dumps
(
data
),
headers
=
headers
)
return
(
True
)
...
...
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