Skip to content

Commit

Permalink
Merge pull request #574 from smartlab-br/571-replace-send-mail-service
Browse files Browse the repository at this point in the history
Adjusting send mail messages
  • Loading branch information
danielamguerra authored Jun 5, 2024
2 parents 9a5b477 + b67882f commit d56fce8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server-middleware/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ app.post('/mail', (req, res) => {
text: content
}

transporter.sendMail(options).then(function (info) {
res.status(200).send(info.response)
}).catch(function (error) {
res.status(400).send(error)
transporter.sendMail(options).then(function (_info) {
res.status(200).send('Mensagem enviada')
}).catch(function (_error) {
res.status(400).send('Erro no envio da mensagem')
})
} else {
res.status(401).send('Unauthorized')
Expand Down

0 comments on commit d56fce8

Please sign in to comment.