Huawei Cloud Tencent Cloud Email Service Setup
So You Want to Send Emails Without Looking Like a Nigerian Prince?
Let’s be honest: setting up email delivery in 2024 feels less like configuring software and more like applying for diplomatic immunity. You need SPF records that don’t accidentally block your own lunch order, DKIM keys that behave like well-trained golden retrievers (i.e., they fetch but never chew the evidence), and a sending domain that whispers ‘legitimate’ to every spam filter from Singapore to São Paulo. Enter Tencent Cloud Email Service — China’s quietly competent answer to Amazon SES, SendGrid, and that one Gmail alias you’ve been using since 2013.
Step 0: The Unspoken Prerequisites (Yes, There Are Three)
Before you even log in, grab these:
- A verified Tencent Cloud account — yes, the kind with real ID verification, not the ‘I uploaded my cat’s passport photo’ tier.
- A domain you control — preferably one not named
best-deals-forever-2003.net. Bonus points if it has at least one live A record and hasn’t been blacklisted by Spamhaus (check viamxtoolbox.com— it’s free and mildly judgmental). - Patience — not the zen kind. The ‘I’ve refreshed DNS lookup 17 times and now suspect my ISP is gaslighting me’ kind.
Step 1: Find the Email Service (It’s Not Under ‘Cloud Storage’)
Log into Tencent Cloud Console, then navigate like you’re defusing a bomb: Products → Enterprise Applications → Email Service. If you see ‘Email API’, ‘SES Clone’, or ‘Mailgun Lite’, close that tab — you’re in the wrong universe. Once there, click Create Email Service Instance. Choose ‘Standard’ unless you’re sending >50K emails/day *and* have a support ticket pre-approved by a Tencent engineer who also knows your mother’s maiden name.
Step 2: Domain Verification — Where DNS Records Go to Die (Temporarily)
Click ‘Verify Domain’. Enter your domain (e.g., yourstartup.dev). Tencent will generate three DNS records:
TXT @ "v=spf1 include:_spf.qcloudmail.com ~all"CNAME mail._domainkey.yourstartup.dev → mail._domainkey.yourstartup.dev.qcloudmail.comTXT mail._domainkey.yourstartup.dev "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…"(yes, that long string — copy-paste like your inbox depends on it, because it does)
Now go to your DNS provider (Cloudflare? Namecheap? That guy who runs DNS from his Raspberry Pi in Vermont?). Paste them. Save. Breathe. Then wait — not 5 minutes, not 10, but up to 48 hours. Yes, really. Tencent’s DNS crawler doesn’t sprint; it sips oolong tea and checks once every 3–6 hours. Pro tip: run dig TXT yourdomain.com and dig CNAME mail._domainkey.yourdomain.com to confirm before refreshing the Tencent console for the 11th time.
Step 3: Sender Address Setup — Because ‘noreply@localhost’ Isn’t Cutting It Anymore
Once domain status flips to ‘Verified’, click ‘Sender Addresses’ → ‘Create’. Enter an email like [email protected]. Tencent will send a confirmation link — check spam, check promotions, check that dusty ‘Updates’ tab you forgot existed. Click it. Done. No phone verification. No CAPTCHA ballet. Just polite, quiet confirmation.
Step 4: SMTP Configuration — The Part Where You Stop Using Gmail as Your Backend
Go to ‘SMTP Settings’. You’ll get:
- SMTP Server:
smtp.qcloudmail.com - Port:
587(TLS) or465(SSL). Use 587 — it’s friendlier to firewalls and your sanity. - Huawei Cloud Username: your verified sender address (
[email protected]) - Password: not your Gmail password. Not your domain registrar password. A separate app password generated under ‘SMTP Password’ → ‘Generate’. Copy it. Store it like crypto seed phrases — encrypted, backed up, and never committed to GitHub.
Test it with a simple script (Python example below):
import smtplib
from email.mime.text import MIMEText
msg = MIMEText('Hello from Tencent Cloud — no, really.')
msg['Subject'] = 'Test Email'
msg['From'] = '[email protected]'
msg['To'] = '[email protected]'
server = smtplib.SMTP('smtp.qcloudmail.com', 587)
server.starttls()
server.login('[email protected]', 'YOUR_SMTP_PASSWORD_HERE')
server.send_message(msg)
server.quit()
If you get no error — congratulations! You’ve just sent an email that won’t land in spam *because of infrastructure*. (Content quality? Still on you.)
Step 5: Monitoring, Quotas & the Art of Not Getting Throttled
Tencent caps new accounts at 200 emails/day (free tier) and 1,000/day (paid). Check ‘Quota Management’ regularly. Also, peek into ‘Email Sending Records’ — it logs everything: success, failure, reason (‘Invalid recipient’, ‘Domain not verified’, ‘Your SPF record looks like a haiku’). Enable webhooks if you want real-time callbacks (useful for retry logic or passive-aggressive Slack alerts).
Huawei Cloud Common Pitfalls — Or, Why Your Email Vanished Into the Digital Void
“My domain shows ‘Verifying’ forever”
You missed a dot in the CNAME, or used mail._domainkey instead of mail._domainkey.yourdomain.com. Double-check trailing dots and case sensitivity (TXT values are case-sensitive; hostnames aren’t — unless your DNS provider is feeling philosophical).
“Emails bounce with ‘550 Sender domain not verified’”
You verified the domain, but the sender address isn’t approved yet — or you’re using [email protected] while only verifying [email protected]. Each sender address must be individually confirmed.
“Tencent says ‘Authentication failed’ on SMTP login”
You’re using your Tencent Cloud account password. Nope. Use the SMTP password — the one you generated, not the one you memorized alongside your childhood pet’s birthday.
“Emails go to spam anyway”
First, verify your content isn’t screaming ‘SCAM!’ (ALL CAPS, ‘URGENT!!!’, suspicious links). Then warm up your domain: start with 10 emails/day for 3 days, then 50, then scale. Tencent monitors engagement — if recipients mark your mail as spam, your domain’s reputation tanks faster than a meme stock.
Final Thought: It’s Not Magic — It’s Just Less Broken Than the Alternatives
Tencent Cloud Email Service won’t auto-write your subject lines or generate witty unsubscribe copy. It won’t replace your email designer or your legal team’s GDPR checklist. But it *will* deliver your transactional emails reliably, scale without begging for mercy, and cost less than your monthly coffee habit. And when your ‘Welcome’ email finally lands in the primary tab — not promotions, not spam, not buried under five newsletters about blockchain gardening — you’ll feel it. A tiny, quiet victory. One properly signed, SPF-verified, human-readable email at a time.

