simple online nosql database database with REST API and MongoDB queries
  • Features
  • Docs
  • Blog
  • Templates
  • Pricing
  • Contact
  • Sign Up
  • Log In

Blog

 The latest news and articles about restdb.io  

Database templates!
Don't forget to visit our template catalog! It's the fastest way to get up and running with a restdb.io database. View templates »

Send mail from your application

by Jon Erik Solheim
|
Howto|Features|API|
  • Share on Facebook
  • Tweet
  • Add to Pocket
  • Share on LinkedIn
  • Send email

mail Yes, your restdb.io database can now send email.

A simple REST endpoint on your database makes sending email from your application a breeze. A nice responsive HTML email template makes your application emails look great, even on mobile devices.

Example

This example sends an email to a client from an imaginary database mydatabase-ad0c. The REST endpoint for sending email from a database is:

mydatabase-ad0c.restdb.io/mail

Send an email with cURL:

curl -X POST -H "Content-Type: application/json"\
-H "x-apikey: 588ca88ca2c06c75467a12ca"\
-H "Cache-Control: no-cache"\
-d '{"to":"jones@restdb.io","subject":"Your order is ready", "html": "<p>Lorem ipsum dolor sit amet, <b>price $20</b> luctu.</p>", "company": "Acme Inc", "sendername": "Acme customer support"}'\
"https://mydatabase-ad0c.restdb.io/mail"

The resulting email from the example above will look something like this screenshot:

screen shot

Housekeeping

To help you keep track of which emails has been sent via the API, you will find copies of all outgoing emails in the system collection email_outbound. mail collection

It's never been simpler to build email into your application.

Next on your ToDo: get a cup of coffee, then add email communication to your application.

  • Share on Facebook
  • Tweet
  • Add to Pocket
  • Share on LinkedIn
  • Send email

All Posts


Search

Topics

  • API
  • Authentication
  • Case study
  • Features
  • Howto
  • Integrations
  • Newsletter
  • Productivity
  • Prototyping
  • Tutorials
  • User

restdb.io is a fast and simple NoSQL cloud database service. With restdb.io you get schema, relations, REST API and an efficient multi-user admin UI for working with data.

Our customers use it for backends, business databases, API-first CMS, data collection and much more. It is easy to get started with the free development plan.

Start Building »

  • Site Links
  • Home Page
  • About Us
  • Contact
  • Blog
  • Templates Catalog
  • Cloud Service
  • Features
  • Pricing
  • Terms & Conditions
  • Privacy Policy
  • Sign Up »
  • Documentation
  • Overview
  • Getting Started
  • Coding against the API
  • Utils
  • Security and Admin
© 2025 restdb.io