Developer Friendly

SMTP API

Send emails via SMTP or JMAP using your UGMail email accounts. Works with any app, website, or marketing tool.

✨ Fully white-labeled — resellers can offer these APIs under their own brand.

SMTP Configuration

Use these credentials in your email client or application.

SMTP Host
smtp.ugmail.co
Port (TLS)
587
Alt: 465 (SSL), 2525
Username
your-email@yourdomain.com
Password
••••••••••
Use your UGMail account password

Integration Example — WordPress

Install the WP Mail SMTP plugin and configure the following:

Mailer: Other SMTP
SMTP Host: smtp.ugmail.co
SMTP Port: 587
Encryption: TLS
Authentication: On
Username: your_email@yourdomain.com
Password: your_email_password

JMAP API Configuration

UGMail supports JMAP (RFC 8620/8621) for modern email operations.

JMAP Session URL
https://mail.ugmail.co/.well-known/jmap
Authentication
HTTP Basic Auth / OAuth 2.0
Use email account credentials

Send Email via JMAP

# 1. Get JMAP session (returns accountId and JMAP API URL)
curl -u "you@yourdomain.com:password" \
  https://mail.ugmail.co/.well-known/jmap

# 2. Fetch your identityId (required by EmailSubmission/set)
curl -u "you@yourdomain.com:password" \
  -H "Content-Type: application/json" \
  -d '{
    "using": ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:submission"],
    "methodCalls": [
      ["Identity/get", {"accountId": "ACCOUNT_ID"}, "0"]
    ]
  }' https://mail.ugmail.co/jmap

# 3. Create the email and submit it for delivery
curl -u "you@yourdomain.com:password" \
  -H "Content-Type: application/json" \
  -d '{
    "using": [
      "urn:ietf:params:jmap:core",
      "urn:ietf:params:jmap:mail",
      "urn:ietf:params:jmap:submission"
    ],
    "methodCalls": [
      ["Email/set", {
        "accountId": "ACCOUNT_ID",
        "create": {
          "draft1": {
            "from": [{"email": "you@yourdomain.com"}],
            "to": [{"email": "recipient@example.com"}],
            "subject": "Hello via JMAP",
            "textBody": [{"partId": "text", "type": "text/plain"}],
            "htmlBody": [{"partId": "html", "type": "text/html"}],
            "bodyValues": {
              "text": {"value": "Sent via JMAP API!"},
              "html": {"value": "<p>Sent via <b>JMAP API</b>!</p>"}
            }
          }
        }
      }, "0"],
      ["EmailSubmission/set", {
        "accountId": "ACCOUNT_ID",
        "create": {
          "send1": {
            "emailId": "#draft1",
            "identityId": "IDENTITY_ID",
            "envelope": {
              "mailFrom": {"email": "you@yourdomain.com"},
              "rcptTo": [{"email": "recipient@example.com"}]
            }
          }
        }
      }, "1"]
    ]
  }' https://mail.ugmail.co/jmap

Additional Protocols

IMAP

Recommended
Host: mail.ugmail.co
Port: 993
Encryption: SSL/TLS

POP3

Host: mail.ugmail.co
Port: 995
Encryption: SSL/TLS

CalDAV / CardDAV

URL: https://mail.ugmail.co/dav/
Calendar & Contacts sync

Ready to send from your domain?

Set up professional email and start sending in minutes with UGMail.