MailShots


MailShots allows you to send email to any email address from your front end. This API exposes a URL that accepts GET or POST requests with some email-sending parameters. More on integration is discussed further below.

This API can be used in a variety of ways, including email validation and integrating a contact us form without having to worry about the backend.

Usage

GET request

To send an email just make a GET request to this URL https://mailshots.deta.dev/ and with the following parameters:-

  • to email address of the receiver
  • body body of the email

Other additional parameters you can use are:-

  • as By the name
  • subject Subject of the email

The basic final URL should look like:- https://mailshots.deta.dev/?to=someone@domain.com&body=Hi%20from%20MailShots
The final URL with additional parameters should look like:- https://mailshots.deta.dev/?to=someone@domain.com&body=Hi%20from%20MailShots&subject=Just%20Hi


POST request

The other way to send email is by making a POST request to this endpoint https://mailshots.deta.dev/ with the following parameters:-

  • to email address of the receiver
  • body body of the email

Other additional parameters you can use are:-

  • as By the name
  • subject Subject of the email
  • token The token contains your credential details

Note: If you don't provide any token the email will be sent from the MailShots default email.


Create Token