Skip to main content
SMTP (Simple Mail Transfer Protocol) is the universal standard for sending email. Use UGMail’s SMTP server to deliver transactional messages, application notifications, automated alerts, or any outbound email directly from your code or email client. Every mailbox provisioned through UGMail is SMTP-enabled the moment it is created.

Connection settings

Configure your SMTP client or library with the following details:
Always use port 587 with STARTTLS rather than port 25. Port 25 is blocked by most cloud providers and ISPs to prevent spam. STARTTLS on 587 upgrades the connection to encrypted transport before any credentials are sent.

Authentication

Use your mailbox’s full email address as the username and the password you configured in the secrets field of the Management API as the password. For example, if your mailbox is alice@example.com, your SMTP username is alice@example.com.
For programmatic access, treat the mailbox password as an app password. Generate a dedicated mailbox for each application or service so you can rotate credentials independently without affecting other senders.

Code examples

The examples below show how to send a message from alice@example.com to bob@example.com. Replace the credentials and addresses with your own.

Troubleshooting

If your messages are rejected with an authentication error, verify that the password matches exactly what you set in the secrets field of the Management API. Passwords are case-sensitive. If you’ve rotated the password via the API, update your application configuration to use the new value.
Last modified on July 17, 2026