A simple SMTP server for Soundways using Unsend API, deployable on Vercel.
- Install dependencies:
pnpm install-
Configure environment variables:
- Copy
.env.exampleto.env.local - The API key is already configured:
us_3cxeiuwcw3_288f1af221d7223cadf328f3eff8d3b7
- Copy
-
Run locally:
pnpm dev- Deploy to Vercel:
pnpm deployPOST /api/send
{
"to": "recipient@example.com",
"subject": "Your Subject",
"html": "<p>HTML content</p>",
"text": "Plain text content",
"from": "sender", // Optional, will use sender@notify.soundways.org
"replyTo": "reply@example.com", // Optional
"cc": ["cc@example.com"], // Optional
"bcc": ["bcc@example.com"], // Optional
"attachments": [{ // Optional
"filename": "document.pdf",
"content": "base64_encoded_content",
"contentType": "application/pdf"
}]
}{
"success": true,
"messageId": "msg_123456",
"data": {
// Additional response data from Unsend
}
}For email clients (Outlook, Gmail, Thunderbird, etc.):
- SMTP Server:
smtp.soundways.org - Port:
587 - Security:
STARTTLSorTLS - Authentication: Required
- Username:
soundways - Email:
no-reply@notify.soundways.org - Password:
75cc4d20f15b370a245cfc905b37a69a
- SMTP Bridge
/api/smtp- Accepts authenticated SMTP-style requests - Direct Send
/api/send- Original API endpoint - Test Auth
/api/test- Test SMTP credentials - Config
/api/config- Get server configuration
- API Endpoint:
https://mailr.buildappolis.com - From Domain:
notify.soundways.org - Provider: Unsend (self-hosted)
- Never commit the
.env.localfile with real API keys - Use Vercel environment variables for production deployments
- The API key should be added as a secret in Vercel dashboard