Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@genezio/email-service

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@genezio/email-service

Email service SDK for Genezio Email Service

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-80%
Maintainers
4
Weekly downloads
 
Created
Source

Genezio Email Service

Join our community Follow @geneziodev

Send emails from your application with genezio email service.

Install

Add the library to your project with the following command:

npm install @genezio/email-service

Import the library in your project the following way:

import { MailService } from "@genezio/email-service";

Basic usage

import { GenezioDeploy } from "@genezio/types";
import { MailService } from "@genezio/email-service";

@GenezioDeploy()
export class EmailService {
  async sendEmail(email: string, subject: string, message: string) {
    const response = await MailService.sendMail({
      emailServiceToken: "<token>",
      from: email,
      to: email,
      subject: subject,
      text: message
    });

    if (!response.success) {
      return response.errorMessage;
    }

    return "success";
  }
}

More informations about how to create a new enail service can be found here.

Learn more

For more details on how to use genezio, check the resources below:

Troubleshooting

If you are having issues with this library, feel free to contact us on Discord.

Keywords

FAQs

Package last updated on 20 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc