Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SMTP2Go

Schemessmtp2go://
Cargo featureservice-smtp2go
Servicehttps://www.smtp2go.com/
Body formatshtml (first is the default)
Attachmentsyes
Title length250 characters
Body length32,768 characters
Body linesunlimited
Request throttle200 ms between requests
Vendor URLs acceptedno

URL formats

{schema}://{user}@{host}/{apikey}/
{schema}://{user}@{host}/{apikey}/{targets}

{schema} is one of smtp2go://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{apikey}API Keystringyessecret
{host}Domainstringyes
{targets}Target Emailslistnoseparated by /
{user}User Namestringyes

Query parameters

ParameterMeaningTypeDefaultNotes
batchBatch Modeboolno
bccBlind Carbon Copylistseparated by , or space
ccCarbon Copylistseparated by , or space
nameFrom Namestring
toTarget Emailslistsets {targets}

Prefixed parameters:

  • +name=value: Email Header

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

smtp2go://user@localhost.localdomain/key/test@example.com
smtp2go://user@localhost.localdomain/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbb-cccccccc
smtp2go://no-reply@example.com/key/user1@example.com/User2:user2@example.com?batch=yes
smtp2go://user@localhost.localdomain/key?name=Jo%20Doe
smtp2go://user@localhost.localdomain/key/Bob:bob@example.com?name=J%C3%B6rg
smtp2go://user@localhost.localdomain/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbb-cccccccc?format=markdown
smtp2go://user@localhost.localdomain/key?to=test@example.com
smtp2go://user@localhost.localdomain/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbb-cccccccc?+X-Customer-Campaign-ID=Mercurio

Rejected URLs:

smtp2go://
smtp2go://:@/
smtp2go://user@localhost.localdomain
smtp2go://localhost.localdomain/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbb-cccccccc

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'smtp2go://user@localhost.localdomain/key/test@example.com'

Notes

SMTP2Go (smtp2go://): e-mail through the SMTP2Go API.

smtp2go://{user}@{domain}/{apikey}[/{to_email}...] ?name=..&cc=..&bcc=..&batch=yes&to=..&+Header=v

+key=value entries become custom e-mail headers. Without targets the message goes to the sender.