Skip to content

mailchannels-cloudflare-worker-example: A reference implementation of a MailChannels Cloudflare Worker, demonstrating email sending and handling capabilities with a serverless, edge-computing approach.

License

Notifications You must be signed in to change notification settings

Shivansh-Khunger/mailchannels-cloudflare-worker-example

Repository files navigation

Hono Cloudflare Worker Email Service

This repository contains a sample Hono Cloudflare Worker that uses the MailChannels API to act as an email worker. The worker is designed to send emails using the MailChannels service, making it easy to integrate email functionality into your applications.

Features

  • Cloudflare Worker: Utilizes Cloudflare Workers to handle email sending.
  • Hono Framework: Built with the Hono framework for a lightweight and efficient serverless application.
  • MailChannels API: Integrates with the MailChannels API to send emails.

Getting Started

Prerequisites

Deployment

wrangler publish

Example Request

curl -X POST https://your-worker-url.example.com/send-email \
  -H "Content-Type: application/json" \
  -d '{
        "name": "Recipient Name",
        "email": "recipient@example.com"
      }'

Preview

You can preview a sample email by clicking the link in the repository description.

About

mailchannels-cloudflare-worker-example: A reference implementation of a MailChannels Cloudflare Worker, demonstrating email sending and handling capabilities with a serverless, edge-computing approach.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published