Package Exports
- mailvex
Readme
MailVex
Node.js SDK for the MailVex email service.
Installation
npm install mailvexUsage
import { MailVex } from 'mailvex';
const mailvex = new MailVex('mv_xxxxxxxxx');
const { data, error } = await mailvex.emails.send({
from: 'hello@yourdomain.com',
to: 'user@example.com',
subject: 'Hello World',
html: '<strong>It works!</strong>'
});
if (error) {
console.error(error);
} else {
console.log(data);
}API
new MailVex(apiKey)
Create a new MailVex client.
apiKey(string): Your MailVex API key (starts withmv_)
mailvex.emails.send(options)
Send an email.
Options:
from(string): Sender email addressto(string | string[]): Recipient email address(es)cc(string | string[], optional): CC recipientsbcc(string | string[], optional): BCC recipientsreplyTo(string | string[], optional): Reply-to address(es)subject(string): Email subjecthtml(string, optional): HTML contenttext(string, optional): Plain text content
Returns: { data, error }
License
Copyright (c) 2026 MailVex. All rights reserved.
This software is proprietary. See LICENSE.txt for details.