Install
Copy
npm install @sendkitdev/sdk
Send email
Copy
import { SendKit } from '@sendkitdev/sdk';
const sendkit = new SendKit('sk_your_api_key');
const { data, error } = await sendkit.emails.send({
from: 'Your Name <you@yourdomain.com>',
to: 'recipient@example.com',
subject: 'Hello from SendKit',
html: '<h1>Welcome!</h1><p>Your first email with SendKit.</p>',
});
if (error) {
console.error(error);
} else {
console.log('Email sent:', data.id);
}

