Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.21 KB

File metadata and controls

39 lines (27 loc) · 1.21 KB

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": "[email protected]"
      }'

Preview

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