feathers-mongoose-casl
Version 2.1.2
Version 2.1.2
  • feathers-mongoose-casl
  • Docs
    • Migrating
    • START A NEW PROJECT
      • Generate a new project.
      • install feathers-mongoose-casl
      • feathers-logger
      • Update config
      • Add mongoose
      • Email service
      • App hooks
      • Import required services
      • Verify user and filter user fields
      • Swagger, Logger, BodyParser
      • Email templates
      • public HTML
      • Run the server
      • Create you first user
      • vs code snippet extension
      • Test Login
      • Dashboard
      • Create a new Service with casl&Dashboard
      • Posts Postman snippet
      • Add Admin role
      • Done!
    • Advanced
      • Security - eslint-plugin-security
      • Security - rate limiting
      • Development tools
    • Guides
      • Throw errors
      • Auth Flow
      • Authentication
      • Authouriztion
      • /me
      • Rules Cache
      • Create a new service
      • Custom service validtor client data
      • validators
        • Example of use
        • Types
        • Mongoose schema
      • Default value
      • $Populate
      • Upload service
      • Upload files
        • Create upload service
        • Sign File After Populate
        • Storage support
          • Google-cloud
      • Error
      • feathers Client examples
      • Dashboard
        • Dashboard Config
          • Field configuration
          • doc Layout
          • custom Fields
            • customElements
        • Online dashboard
        • Add to your react app
      • customized feathers-mongoose-casl/services
      • Redis - in progress
      • S3
      • Postman
      • Swagger
      • debug
    • Production
      • ENV
    • Feathers wiki
      • Good links
    • utils
      • send email example
      • Async For Each
      • Create heroku server
      • pick
      • vs code snippet extension
      • Persist user request
    • Ecosystem
    • TODO
    • Versions updates
Powered by GitBook
On this page
  • Send emails using mailgun
  • Send emails using sendgrid

Was this helpful?

  1. Docs
  2. START A NEW PROJECT

Email service

We need mail service to verify user email

PreviousAdd mongooseNextApp hooks

Last updated 5 years ago

Was this helpful?

You can skip this step if you did not need a verification email in your app

How to disabled email verify? 1 - open config\default.json 2- Set false at verifyEmail.enabled

If you are using mailgun without domain you need to verify the emails you want to email Please add your email where you'd like to sign in to your app

Send emails using mailgun

  1. Create account

  2. Update config file

    /config/default.json
    // Add this lines
      "mailgun": {
        "apiKey": "key-XXX",
        "domain": "XX.com"
      }
      
    "feathers-mongoose-casl": {
        "mailer": {
          "service": "mailgun",
        },

Send emails using sendgrid

  1. Update config file

    /config/default.json
    // Update add this lines
      "sendgrid": {
        "apiKey": "key-XXX",
      }
      
    "feathers-mongoose-casl": {
        "mailer": {
          "service": "sendgrid",
           //Optional - un comment to use template
           //"sendgrid-authentication-emails-templates": {
            //"reset-password": "d-e3565301c97748e199cf07987cfac6bd",
            //"Identity-change": "d-e89c652f1b6a41b4b65ffd8f81a89506",
            //"password-change": "d-e89c652f1b6a41b4b65ffd8f81a89506",
            //"verify-email": "d-2b7c56d513cc4401adfd6475cbc9352e",
            //"password-was-reset": "d-e89c652f1b6a41b4b65ffd8f81a89506",
            //"email-verified": "d-67c7921e8bcc4447a7ae593878a6f0ab"
          //}
        }
git add .
git commit -m "Update mailgun apiKey"

Create account

https://app.mailgun.com/app/account/authorized
mailgun
sengrid