helios-send-node
v0.2.0
Published
Node.js SDK for HeliosSend email delivery service
Maintainers
Readme
helios-send-node
Node.js SDK for HeliosSend email delivery service, built by Revinity.
Installation
npm install helios-send-node
# or
pnpm add helios-send-node
# or
yarn add helios-send-nodeQuick Start
import { MailClient } from 'helios-send-node';
const client = new MailClient({
apiKey: process.env.HELIOS_API_KEY!,
baseUrl: 'https://api.helios-send.com',
});
await client.send({
from: { email: '[email protected]', name: 'HeliosSend' },
to: [{ email: '[email protected]' }],
subject: 'Welcome!',
html: '<p>Welcome to HeliosSend, powered by HeliosEditor & Revinity.</p>',
});Features
- Simple, type-safe API
- Automatic retries with exponential backoff
- Idempotency key support
- Batch sending
- Template support with HeliosEditor
Template Design with HeliosEditor
Design rich email templates with HeliosEditor and use this SDK to send them:
await client.send({
from: { email: '[email protected]' },
to: [{ email: '[email protected]' }],
templateId: 'welcome-template-123',
substitutions: {
userName: 'John Doe',
activationLink: 'https://myapp.com/activate?token=abc123',
},
});API Reference
See the main documentation for full API reference.
