Skip to content

Latest commit

 

History

History
127 lines (66 loc) · 4.43 KB

introduction.md

File metadata and controls

127 lines (66 loc) · 4.43 KB

Introduction

Shoutbox is a simple to use API for developers. Using any language that allows call out to the Shoutbox API, a large volume of emails can be sent.

Pick your environment below to start setting up and sending email:

CURL

NodeJS

Prerequisites

  • A Cloudflare account
  • One or more domains connected to that Cloudflare account

New User: Set up domain

Screenshot 2024-05-08 at 14.41.56.png

and Sign up with your information.

  • Create a team to work with

Screenshot 2024-05-08 at 14.42.32.png

Screenshot 2024-05-08 at 14.43.40.png

  • Now gather the Cloudflare information for your account;

Screenshot 2024-05-08 at 14.44.25.png

Please see the guide here how to complete this step: Cloudflare retrieve your Account ID & Secret Token

  • Click to add a Cloudflare Worker automatically

Screenshot 2024-05-08 at 15.15.05.png

  • Now it is time to add the first Domain

Note: this domain must be in your Cloudlfare account, in the account you picked when setting up the account Id and secret; this cannot work if this was not set up properly.

Screenshot 2024-05-08 at 15.16.45.png

  • Now you can automatically or manually set up your domain for use with Shoutbox

Screenshot 2024-05-08 at 15.18.11.png

  • To make sure everything goes more smoothly, it is recommend to clean up the Cloudflare DNS first, click here to see how; Cleanup Cloudflare DNS

  • Click to automatically add the information in Cloudflare

Screenshot 2024-05-08 at 15.25.40.png

  • Enter the domain, without www. in the box below to continue

Screenshot 2024-05-08 at 15.26.08.png

  • Continue to add the records

Screenshot 2024-05-08 at 15.27.32.png

  • On the keys screen, add a key for your account to send email with

Screenshot 2024-05-08 at 15.28.23.png

  • Pick a name and a domain, or All domains

Screenshot 2024-05-08 at 15.30.05.png

  • Click Create

Screenshot 2024-05-08 at 15.30.45.png

  • Copy the Key starting with key_ somewhere safe!

This key cannot be copied again after this step but is required to send emails. You can always go back to API Keys and then Create another key.

  • Verify the domain by clicking Domains in the left menu

Screenshot 2024-05-08 at 15.33.06.png

  • Check for the domain that was Not Started yet and click on it

Screenshot 2024-05-08 at 15.33.33.png

Screenshot 2024-05-08 at 15.34.46.png

  • Click on the Verify DNS Records button

Screenshot 2024-05-08 at 15.35.42.png

Screenshot 2024-05-08 at 15.35.55.png

  • This step can take 24 hours at max; when it has been completed, it shows active or an error

Screenshot 2024-05-08 at 15.36.42.png

Congratulations!

You are ready to send your first email. Return to the settings for your preferred development language / environment or try to send a test email:

curl -X POST 'https://api.shoutbox.net/send' \
  -H 'Authorization: Bearer key_XXXXXXXXXXXX' \
  -H 'Content-Type: application/json' \
  -d $'{
    "from": "[email protected]",
	  "name": "Tycho", 
    "to": "[email protected]",
    "subject": "Hello World",
    "html": "<strong>it works!</strong>"
  }'

Replace key_XXXXXXXXXXXX with the key you saved from the Shoutbox API keys and change the From Address with your own email/domain and the To address with some address you want to try to send to. Make sure to use the domain you used and activated above.