Postwing is a convenient service for sending email with support for SMTP and a REST API. Authentication is handled through a Token, which contains a login and a password.
A token is the entity used to authenticate when sending email. It consists of:
You can manage tokens on the “Token management” page. If the password is lost, the token must be deleted and created again.
Postwing provides an SMTP relay that accepts three connection modes — SSL/TLS (implicit), STARTTLS, and plain (no encryption):
smtp.postwing.app465, 8465587, 858725, 8025465 with SSL/TLS — it is encrypted from the first byte and the simplest to configure. Port 587 with STARTTLS works just as well if your client prefers it. 8465, 8587, 8025) — use it if your hosting provider blocks the standard mail ports on outbound connections. Full connection details, per-mode explanations and swaks test commands are on the SMTP page.
The REST API is a programmatic interface for sending email over HTTP requests. This approach is convenient when:
Request URL: POST /external/send_email_simple/
Payload:
{
"recipient": "email@test.com",
"subject": "Subject",
"body": "Email Content",
"sender": "from me <email@test.com>",
"idempotency_key": "xxxxxx",
"auth": {
"username": "Username",
"password": "Password"
}
}curlcurl -X POST "https://smtp.postwing.app/external/send_email_simple/" \
-H "Content-Type: application/json" \
-d '{
"recipient": "email@test.com",
"subject": "Test Email",
"body": "Hello, this is a test email!",
"sender": "sender@test.com",
"idempotency_key": "12345",
"auth": {
"username": "your_token_login",
"password": "your_token_password"
}
}'They are available in the menu on the left. If you can’t find a guide for your framework — let us know!
Postwing offers flexible ways to send email — choose SMTP for classic use cases, or the REST API for automated scenarios.