Microservice for sending email via SendGrid
10K+
Microservice for sending mail via SendGrid
role: mail, cmd: sendSends email
const email = {
to: '[email protected]',
from: '[email protected]',
subject: 'Hi, there!',
text: 'Greetings'
}
Seneca.act('role: mail, cmd: send', email, (error, data) => {})
From cli
$ curl -d '{"role": "mail", "cmd":"send", "to":"[email protected]", "from": "[email protected]", "subject": "Hi, there", "text": "Greetings!"}' -v http://localhost:8000/act
Content type
Image
Digest
Size
118.6 MB
Last updated
almost 9 years ago
docker pull telemark/tfk-seneca-mesh-mail-sendgrid