Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions knowledge-base/best-practices/smtp-vs-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Your application connects to Lettr's SMTP server and sends the email using the S
# Example: Send via SMTP using curl
curl --url "smtp://smtp.lettr.com:587" \
--ssl-reqd \
--user "api:your-api-key" \
--user "lettr" \
--mail-from "notifications@mail.example.com" \
--mail-rcpt "recipient@example.com" \
--upload-file email.eml
Expand All @@ -55,7 +55,7 @@ const transporter = nodemailer.createTransport({
port: 587,
secure: false, // STARTTLS
auth: {
user: 'api',
user: 'lettr',
pass: 'your-api-key'
}
});
Expand Down Expand Up @@ -118,7 +118,7 @@ SMTP is the right choice when:
|---------|-------|
| Host | `smtp.lettr.com` |
| Port | `587` (STARTTLS) or `465` (TLS) |
| Authentication | Username: `api`, Password: your API key |
| Authentication | Username: `lettr`, Password: your API key |
| Encryption | Required (TLS or STARTTLS) |

<Warning>
Expand Down