Mongo Server
  • Introduction
  • Getting started
  • Basics
    • Routing and Queries
    • Restrict endpoints
    • Route logic
    • Default values
    • Input validation and Output Formatting
  • Auth and permissions
    • Login and authentication
    • Permission handling
    • Local authentication
    • Magic Links and codes
  • Automatic Documentation
    • Server description
    • Swagger Docs
  • Miscellaneous
    • Db Seeding
    • Mailing settings
    • Roadmap
    • Population Constrains
Powered by GitBook
On this page

Was this helpful?

  1. Miscellaneous

Mailing settings

Mailing

You can create a mailing service that sends you an email when a POST request hit the specified resource, using a Nodemailer instance:

module.exports= {
    resources: {
      dogs: {
        // this option will do the trick
        email: {
          to: ['fega.hg@gmail.com'],
          title: 'An optional title'
        }
      },
    },
    nodemailer: {
      // place here your nodemailer configuration
      service: 'MailDev',
    },
  }

This option could be helpful for landing pages.

PreviousDb SeedingNextRoadmap

Last updated 6 years ago

Was this helpful?