JSPM

mailvex

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q24980F
    • License SEE LICENSE IN LICENSE.txt

    Node.js SDK for MailVex email service

    Package Exports

    • mailvex

    Readme

    MailVex

    Node.js SDK for the MailVex email service.

    Installation

    npm install mailvex

    Usage

    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 with mv_)

    mailvex.emails.send(options)

    Send an email.

    Options:

    • from (string): Sender email address
    • to (string | string[]): Recipient email address(es)
    • cc (string | string[], optional): CC recipients
    • bcc (string | string[], optional): BCC recipients
    • replyTo (string | string[], optional): Reply-to address(es)
    • subject (string): Email subject
    • html (string, optional): HTML content
    • text (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.