🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@tableland/studio-mail

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tableland/studio-mail

[![License: MIT AND Apache-2.0](https://img.shields.io/badge/License-MIT%20AND%20Apache--2.0-blue.svg)](./LICENSE) [![Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Ftablelandnetwork%2Fstudio%2Fmain%2Fpacka

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
7
-46.15%
Maintainers
5
Weekly downloads
 
Created
Source

@tableland/studio-mail

License: MIT AND Apache-2.0 Version standard-readme compliant

Encapsulates email sending in Studio.

Background

This package only exports a single function initMailApi, which takes an optional apiKey for Postmark. If the API key is not provided, emails will be logged to the console. If an API key is provided, emails will actually be sent.

Install

You can install via npm.

npm install @tableland/studio-mail

Usage

import { initMailApi } from "@tableland/studio-mail";

const mailApiKey = "your_postmark_api_key"; // Or, initialize without a key to log to console
const mailApi = initMailApi(mailApiKey);

await mailApi.sendInvite(
  "email@example.com", // User's email
  "https://example.com/image", // Link to invite image
  "inviter-username", // Username of who is inviting
  "team-name", // Team name string
  "https://example.com/accept", // Link to accept invite
);

Development

See the web package for the store is used in the context of Studio.

Contributing

PRs accepted. Studio is still under initial development, so if you are interested in helping out, feel free to connect on Discord: https://tableland.xyz/discord

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT AND Apache-2.0, © 2021-2024 Tableland Network Contributors

FAQs

Package last updated on 18 Jun 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