npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@logto/connector-smtp2go-email

v1.1.0

Published

SMTP2GO Email Service connector implementation.

Readme

SMTP2GO email connector

The official Logto connector for SMTP2GO email service.

Table of contents

Get started

SMTP2GO is a reliable email delivery service for transactional and marketing emails. We can use its email sending function to send verification codes.

Register SMTP2GO account

Create a new account at SMTP2GO website. You may skip this step if you've already got an account.

Verify senders

Go to the SMTP2GO dashboard and sign in with your SMTP2GO account.

Senders indicate the addresses our verification code email will be sent from. In order to send emails via SMTP2GO, you need to verify at least one sender email address or domain.

From the SMTP2GO dashboard, navigate to Settings → Sender Domains or Settings → Verified Senders.

Domain Verification (Recommended):

  • Click "Add Domain" and follow the instructions to verify your entire domain
  • You'll need to add DNS records (SPF, DKIM) to your domain
  • This allows you to send from any email address on that domain

Single Sender Verification:

  • Click "Add Verified Sender"
  • Enter the email address you want to send from
  • SMTP2GO will send a verification email to that address
  • Click the verification link in the email to complete the process

Create API keys

From the SMTP2GO dashboard, navigate to Settings → API Keys.

Click Add API Key button:

  1. Give your API key a descriptive name (e.g., "Logto Production")
  2. Select the appropriate permissions (at minimum, "Send Email" permission is required)
  3. Click "Create"

Important: The API key will be shown only once. Copy it immediately and store it securely.

Configure your connector

Fill out the apiKey field with the API Key created in the "Create API keys" section.

Fill out the sender field with your verified sender email address (e.g., [email protected]).

Fill out the senderName field with a friendly name that will appear as the sender (e.g., "Logto"). This field is OPTIONAL.

You can add multiple SMTP2GO email connector templates for different cases. Here is an example of adding a single template:

  • Fill out the subject field, which works as the title of emails.
  • Fill out the content field with arbitrary string-typed contents. Do not forget to leave placeholders like {{code}} for the random verification code.
  • Fill out usageType with a Logto template type (e.g. SignIn, Register, ForgotPassword, Generic, OrganizationInvitation, …).
  • Fill out type field with either text/plain or text/html for different types of content.

In order to enable full user flows, templates with usageType Register, SignIn, ForgotPassword and Generic are required.

Here is an example of SMTP2GO connector template JSON:

[
    {
        "subject": "Welcome to Logto - Verify Your Account",
        "content": "Your verification code is {{code}}. This code will expire in 10 minutes.",
        "usageType": "Register",
        "type": "text/plain"
    },
    {
        "subject": "Sign in to Logto",
        "content": "Your sign-in verification code is {{code}}. This code will expire in 10 minutes.",
        "usageType": "SignIn",
        "type": "text/plain"
    },
    {
        "subject": "Reset Your Logto Password",
        "content": "Your password reset code is {{code}}. This code will expire in 10 minutes.",
        "usageType": "ForgotPassword",
        "type": "text/plain"
    },
    {
        "subject": "Logto Verification Code",
        "content": "Your verification code is {{code}}. This code will expire in 10 minutes.",
        "usageType": "Generic",
        "type": "text/plain"
    }
]

Test SMTP2GO email connector

You can type in an email address and click on "Send" to see whether the settings can work before "Save and Done".

That's it. Don't forget to Enable connector in sign-in experience

Config types

| Name | Type | |------------|-------------------| | apiKey | string | | sender | string | | senderName | string (OPTIONAL) | | templates | Template[] |

| Template Properties | Type | Enum values | |---------------------|-------------|------------------------------------------------------| | subject | string | N/A | | content | string | N/A | | usageType | enum string | Logto TemplateType values (e.g. Register, SignIn, ForgotPassword, Generic, OrganizationInvitation, UserPermissionValidation, BindNewIdentifier, MfaVerification, BindMfa) | | type | enum string | 'text/plain' | 'text/html' |