Socket
Socket
Sign inDemoInstall

highoutput-email-service

Package Overview
Dependencies
102
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    highoutput-email-service

Is a service that is an abstraction of Amazon SES which mainly focuses on sending email.


Version published
Weekly downloads
5
Maintainers
1
Install size
78.9 MB
Created
Weekly downloads
 

Readme

Source

Email Service API

Is a service that is an abstraction of Amazon SES which mainly focuses on sending email.

You need to setup amazon credentials. Please see https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html on how setup on your current machine.

Send Email [/email]

POST

To make the request valid, you need to set a key in the header that can be found in config/server.js property key. ** Request **

PropertyData TypeRequiredDescriptionDefault Value
from<String>trueVerified email from amazon SES
to<Array<String>> trueRecipient(s) address
subject<String>trueSubject of the email
html<String>falseHTML message
text<String>falsePlain text message (for fallback)
cc<Array<String>>false
bcc<Array<String>>false
region<String>trueRegion to be used of the amazon SES for sending the emailus-east-1
checkValidity<Boolean>falseDetermine whether to check first all the email if those email(s) exists of the domain SMTP serverfalse

Headers:

  key: ozBn73n4xXtFYyA

Sample Request

{
  "from": "Highoutput Ventures <noreply@highoutput.io>",
  "to": ["djansyledjans@gmail.com"],
  "subject": "hello world",
  "html": "<b>Hello world</b><a href='#'>Test</a>",
  "text": "good eve",
  "cc": ["chestine_jans@yahoo.com"],
  "bcc": ["chestine_jans@yahoo.com"]
}

Send Template [/email/template]

Email template must be in ejs format.

POST

Upload a new template with the given name and the template itself. It's also possible to use include in ejs template files with the name of the referred template. Template file must be in form-data that compose of 2 keys namely the name which will represent the name of the template and the template which is the ejs file to be uploaded.

curl -X POST -F template=@./header.ejs -F name=header http://localhost:8080/email/template

You can then make a request that uses template.

{
  "from": "Highoutput Ventures <noreply@highoutput.io>",
  "to": ["djansyledjans@gmail.com"],
  "subject": "hello world",
  "template": "header",
  "templateData": { "brand": "highoutput ventures" },
  "cc": ["chestine_jans@yahoo.com"],
  "bcc": ["chestine_jans@yahoo.com"]
}

Keywords

FAQs

Last updated on 16 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc