Socket
Socket
Sign inDemoInstall

@openinc/parse-server-smtp-adapter

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @openinc/parse-server-smtp-adapter

Parse Server adapter for SMTP/nodemailer using nunjucks templates


Version published
Weekly downloads
3
Maintainers
1
Install size
6.88 MB
Created
Weekly downloads
 

Readme

Source

@openinc/parse-server-smtp-adapter

A mail adapter for Parse Server, which uses nodemailer to send mails and nunjucks for templates.

Installation

npm i @openinc/parse-server-smtp-adapter

Usage

In your Parse Server config:

{
  //...
  "emailAdapter": {
    "module": "@openinc/parse-server-smtp-adapter",
    "options": {
      // adapter config:
      // the email "from" field
      "from": "info@beispiel.de",

      // (default: email) attribute of the Parse.User object, which will hold an email
      "emailAttribute": "email",

      // (default: language) attribute of the Parse.User object, which will hold an a language identifier
      "languageAttribute": "language",

      // Subject when sending password reset emails:
      "subjectPasswordResetEmail": "Parse App: Password Reset",

      // Or as an object, which will point from a language identifier to a string
      // If you use an object, subjectPasswordResetEmail.default will be required
      // as an identifier, which will be used, if no other object property matches the language identifier
      "subjectPasswordResetEmail": {
        "de": "Parse App: Passwort Zurücksetzen",
        "default": "Parse App: Password Reset"
      },

      // Same as subjectPasswordResetEmail but for sending verification emails
      "subjectVerificationEmail": "Parse App: Email Verification"

      // Path to the template directory
      // You need to create the following files
      // - verificationEmail.txt
      // - verificationEmail.html
      // - passwordResetEmail.txt
      // - passwordResetEmail.html
      // The following variables are available in your templates:
      // - link: Link to the password reset/email verification page
      // - user: Parse.User object
      // - language: Language identifier
      "templateDir": "./views/emails",

      // nodemailer config (https://nodemailer.com/smtp/):
      // All options, that do not match the above options,
      // will be passed to nodemailer.createTransport(options)
      "host": "xxx",
      "port": 465,
      "secure": true,
      "auth": {
        "user": "xxx",
        "pass": "xxx"
      },
    }
  }
}

Keywords

FAQs

Last updated on 08 Apr 2020

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