"use client"; import { motion } from "framer-motion"; import { RocketLaunchIcon, EnvelopeIcon, MegaphoneIcon, DevicePhoneMobileIcon, } from "@heroicons/react/24/solid"; import { Heading1, Heading2, Heading3, AlignLeft, AlignRight, AlignCenter, Bold, Italic, ListOrdered, } from "lucide-react"; import { formatDate } from "date-fns"; import { Code } from "@unsend/ui/src/code"; import Link from "next/link"; import Image from "next/image"; const jsCode = `const requestOptions = { method: "POST", headers: { "Accept": "application/json", "Content-Type": "application/json", "Authorization": "Bearer us_1a2b3c4d5e6f7f8g" }, body: JSON.stringify({ "to": "test@company.com", "from": "hello@unsend.dev", "subject": "Unsend email", "html": "

Unsend is the best open source product to send emails

" }), }; fetch("http://unsend.dev/api/v1/emails", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.error(error)); `; const pythonCode = `import requests import json url = "http://unsend.dev/api/v1/emails" payload = json.dumps({ "to": "test@company.com", "from": "hello@unsend.dev", "subject": "Unsend email", "html": "

Unsend is the best open source product to send emails

" }) headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer us_1a2b3c4d5e6f7f8g' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)`; const rubyCode = `require 'uri' require 'net/http' require 'json' url = URI("http://unsend.dev/api/v1/emails") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Post.new(url) request["Accept"] = 'application/json' request["Content-Type"] = 'application/json' request["Authorization"] = 'Bearer us_1a2b3c4d5e6f7f8g' request.body = JSON.dump({ "to" => "test@company.com", "from" => "hello@unsend.dev", "subject" => "Unsend email", "html" => "

Unsend is the best open source product to send emails

" }) response = http.request(request) puts response.read_body`; const phpCode = `$url = "http://unsend.dev/api/v1/emails"; $payload = json_encode(array( "to" => "test@company.com", "from" => "hello@unsend.dev", "subject" => "Unsend email", "html" => "

Unsend is the best open source product to send emails

" )); $headers = array( "Accept: application/json", "Content-Type: application/json", "Authorization: Bearer us_1a2b3c4d5e6f7f8g" ); $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { echo $response; }`; const cUrl = `curl --location 'https://unsend.dev/v1/emails' \\ --header 'Accept: application/json' \\ --header 'Content-Type: application/json' \\ --header 'Authorization: Bearer us_44c1071bd30058322f89a09805522d7341a47b5e' \\ --data-raw '{ "to": "test@company.com", "from": "hello@unsend.dev", "subject": "Unsend email", "html": "

Unsend is the best open source product to send emails

", }'`; export default function Home() { return (

Open source sending infrastructure for{" "} developers

Send transactional, marketing emails, SMSes and push notifications effortlessly.

Join the waitlist
App {/* */}

Reach your users

Transactional Mail

  • Simple to use! No wasted time on configuration.
  • Send emails that reach the inbox, not spam.
  • Get notified of email bounces and complaints.
Sent
{formatDate(Date.now() - 100000, "MMM dd, hh:mm a")}
We received your request and sent the email to recipient's server.
Delivered
{formatDate(new Date(), "MMM dd, hh:mm a")}
Mail is successfully delivered to the recipient.

Marketing Mail

  • Manage newsletters, changelogs, and broadcasts easily.
  • Use our no-code email builder and templates that works on all email clients.
  • Measure engagement using click and open tracking.
  • Focus on the content and we will handle the subscription for you.
Welcome to unsend!

Finally an open source alternative for Resend, Mailgun, Sendgrid and postmark.

SMS & Push notification

{"Coming soon!".split("").map((l, i) => ( {l} ))}

Integrate in minutes

{/* */}
{/*
*/}
Join the waitlist
Email: hello@unsend.dev
{/* Github */}
); }