19 September, 2026

What Is Mailgun? The USD Billing Trap and a Local Mail Alternative

Customers come to MONA to sort out a sudden huge USD invoice for email at the end of the month, and often ask us angrily what Mailgun is that it charges such unreasonable fees. According to the price list we checked on 19/09/2026, their Basic plan costs from $15 (about 390,000 VND) for just 10,000 emails. It hurts more on the Free plan, which is limited to 100 emails a day and keeps logs for exactly one day. When you open the system in the morning to check why a customer didn't get yesterday's OTP email, all the evidence has been wiped. You really lose money.

In this article we expose the USD overage trap of international services, explain how automated email flows work, and describe how to handle a mailbox that receives thousands of emails a day. Don't use Mailgun if you only need to send transactional email within Vietnam. You can switch to infrastructure located in Vietnam such as MONA Mail, at 99,000 VND for 30,000 emails, and the system returns a 402 error when the wallet runs out instead of quietly creating a surprise invoice. We checked the numbers before writing.

Customers not receiving OTP codes and the cost of spam

gau mona hoang mang khi thu otp rot vao hop thu rac
The customer waits and waits and never sees the confirmation code to pay for the order.

Picture this: at 11 p.m. a customer transfers money for an order and waits for the OTP, but the phone shows an empty inbox, so the customer gets annoyed and leaves, and the sale is lost right at the door. That is the price of losing control of your transactional email, when the most important emails fly straight into spam while the system report still shows a perfect green. You lose real money.

"Queued" is not "delivered", and "delivered" does not mean the customer read it. These two get confused in most projects we take over for repair. Without proper DNS setup, such as a DKIM record with selector mona1 on RSA 2048, or with a loose SPF configuration, the provider's API still accepts the send command, but the emails that go out immediately lose reputation and end up in the spam folder.

According to our check on 19/09/2026, Mailgun's Free plan of 100 emails a day actually hurts users because the system keeps logs for exactly 1 day. This morning a customer asks why they didn't get an email, and the evidence has already been wiped clean. The IT staff can only guess and blame each other, while the customer insists on a refund.

To resolve this for good when custom software, our worker uses a strict processing flow: on a temporary SMTP error it patiently retries after 1 second, 5 seconds, 25 seconds, 2 minutes, then 10 minutes before giving up. On a 5xx error the system marks the email as failed immediately, and returns each email's status through a webhook or the GET /v1/emails/{id} command so you can see it with your own eyes instead of guessing.

Never hand important transactional emails to platforms that keep logs for only 24 hours. It is very risky.

What is Mailgun, and why do developers use the Mailgun API so often?

doi gau mona tich hop mailgun api vao he thong
Mailgun helps software push thousands of transactional emails automatically every day.

On 17/09/2026, the info@monapay.vn mailbox of automatic payment gateway MONA Pay received real emails after we fixed the DKIM conflict. Before that, the screen said the send succeeded but the destination mailbox was empty. That is where the hole is. Directors and shop owners often assume that once the system sends the command, the customer is holding the email, while real delivery goes through a long chain of relay stations.

Mailgun was made to be that relay station. Think of it as a service that offers an API so a website can send bulk emails automatically without anyone typing by hand. According to Mailgun's official pricing page, checked on 19/09/2026, the platform gives 100 emails a day with one domain so developers can test their processing flow. The trap appeared when we took over a web system and found that this trial plan keeps logs for only one day. When a customer complained about a verification email missing since yesterday, the whole team was stuck because there was no trace to reconcile.

How does the Mailgun API work?

Instead of building a heavy mail server yourself, e-commerce websites will package the email content and push it straight to Mailgun's system. As a practical example, our engineers only need to add one DKIM record with the selector mona1 on RSA 2048 for the email to get past the spam filter. Without this setup, the API still accepts commands normally, but the email sent out will surely lose reputation and fall into the spam folder.

The difference between queued and delivered

These two statuses are treated as the same in most software projects we take over. The code sends the email and the staff report success, but the real status at that moment is only "queued", not "delivered". Even "delivered" doesn't mean the customer read it, because the word simply means the destination server logged it. When the MONA Cloud sending flow hits a temporary SMTP error, the system retries at 1 second, 5 seconds, 25 seconds, 2 minutes, up to 10 minutes before it reports "failed". We write this process precisely into the handover documents and never use tricks like promising a perfect inbox rate.

The Mailgun free tier and the trap of USD overage bills

gau mona hoang hot khi nhan hoa don usd tu mailgun
Once you exceed the free plan's limit, foreign-currency invoices are charged automatically to your Visa/Mastercard.

In the morning you get a customer's complaint about not receiving last night's confirmation code, and when you log in to look it up the screen is empty because the system has wiped the data. Many people look up what Mailgun is, but few notice the harsh rules of this platform: a hard limit of 100 emails a day, only one domain, and a history retention of exactly one day.

A one-day log is a nightmare

Mailgun's Free plan keeps logs for exactly one day. In the early morning a customer asks why they didn't get yesterday's email, and when you open the system every trace has been wiped, with no evidence left. There is no way to know whether the email was blocked at the other server or the system refused it from the start.

We faced this exact problem with the MONA Cloud system email flow, which has three fixed emails sent from noreply@monamail.vn to notify that a domain is verified, that quota has hit 80 percent, or that a plan is downgraded because the wallet is low. We wrote a cron that runs every 5 minutes to calculate quotas and call back webhooks, so customers can call GET /v1/emails/{id} and see the email status right away. No guessing. If you choose a custom software development company, ask them to apply this same transparent mechanism.

Overage fees charged in USD

As soon as you send past the free limit, you must buy the Basic plan at 15 USD a month for 10,000 emails, which works out to 39 VND per email, 13 times the 3 VND of MONA Mail. One careless overage setting and the platform immediately generates a USD invoice and charges your Visa or Mastercard directly.

We designed our system so that when the wallet runs out, the API immediately returns a 402 code and pauses the extra sending, with no surprise invoices. When building software for Vietnamese users, don't hand your cash flow to platforms that charge automatically against your wishes.

Assembling Mailgun SMTP yourself and the sleepless nights chasing errors

gau mona thuc dem do loi mailgun smtp
Missing DNS records make customers' servers reject every email you send.

The technician types the SMTP setup command and it reports success, but the next morning customers all complain they didn't get their verification codes. We see this all the time. Most businesses that assembled their own email flow came to us to custom software are all in a state of collapse.

Reading guides online, assembling Mailgun looks like copying a few lines of code onto your server, but in real operation you find countless holes. You pay your IT team hoping to build a solid system, yet every day they are buried in error logs line by line. When the system hits a temporary SMTP error, the worker must retry after 1 second, 5 seconds, 25 seconds, 2 minutes and 10 minutes, which also causes serious queue congestion. For 5xx errors, the system reports failure immediately. That error is not retried. It makes every code-sending command vanish.

Wrong DKIM setup lowers email reputation

Without DNS setup the API still accepts send commands as normal, and SPF only warns without blocking immediately. Your domain reputation then falls without brakes and no one in the company notices.

We handled a sweat-inducing case on 17/09/2026 for the info@monapay.vn mailbox itself, working through a DKIM record conflict between two selectors and fixing a read-only container error. Only when we configured exactly one DKIM record with the selector mona1 on RSA 2048 did that mailbox receive real emails. Right after that, the mailbox API test suite ran all 147 tests and passed every one. Many people dangerously confuse the "queued" status with "delivered". A "delivered" status doesn't mean the customer opened and read it either.

Handing infrastructure setup to someone who has never been burned by a domain reputation loss is the fastest way to burn company money. Instead of making your in-house IT team assemble the system and fumble through complicated error codes at three in the morning, use a ready-made platform with Vietnamese support and focus on selling. A technical team only pays off when it builds new features rather than fighting fires.

How we handle a mailbox that receives thousands of emails for a payment system

gau mona xu ly he thong nhan mail thanh toan
Every transactional email flow in the payment system goes through strict API testing.

If a financial system stumbles right at receiving emails, the whole process behind it stands still, thousands of pending transactions have their write access locked and data gets stuck. For the info@monapay.vn mailbox of MONA Pay, we had to debug the read-only container ourselves and fully resolve the DKIM signature conflict between two different selectors. Everything was cleaned up completely before the system started receiving real emails on 17/09/2026.

Losing control of a large-scale mailbox is a real nightmare. Picture a customer who integrate online payment into your website, transfers money, but the confirmation email gets lost due to a misconfiguration, and the next morning they call asking where the money went, which is very hard to explain. To make sure the receiving flow is stable, we ran the API test suite through 147 strict tests. The system had to pass them all before going into real use. Domain verification really needs only one DKIM record with the selector mona1 on RSA 2048 encryption. The SPF record only warns and does not block the receiving flow, but without DNS setup, reputation will certainly collapse.

The biggest trap of doing it yourself is losing the system's trail on free plans. According to Mailgun's pricing page as we checked on 19/09/2026, the Free plan allows 100 emails a day but keeps logs for only one day. The next morning a customer asks why yesterday's invoice email hasn't arrived, you open the system to check and the data is gone. There is nothing left to reconcile. Lost logs mean total loss.

At MONA, receiving addresses for automated systems always get a clear name like name@name.agent.monamail.vn instead of a meaningless string of characters. Instead of entrusting your core email flow to a free platform that wipes logs after 24 hours, choose a server that keeps records for at least 30 days so you have full control when handling incidents.

Look back at last month's statement and work out how many USD you lost on emails that fell straight into spam, plus the staff who stayed up at night digging through logs because your self-assembled flow broke. We opened the beta at monamail.vn with 3,000 free emails a month. Bring your AI over to try it.

Get 3,000 free emails at MONA Mail Call 1900 636 648

Mailgun vs SendGrid, and why Vietnamese businesses need their own solution

bang so sanh mailgun vs sendgrid va giai phap mona
International email platforms keep tightening free-plan policies and raising prices.

Customers who come to MONA for software often face a very familiar scene. You open your computer in the early morning and find your inbox flooded with complaints that customers didn't get their confirmation codes, and when you check, the sending account was locked last night because the Visa/Mastercard expired. The biggest frustration of depending on a foreign platform is losing all control to a payment policy halfway around the world. Cash flow loss.

SendGrid permanently cut its free plan

From 27/05/2025, SendGrid ended sending on every Free plan after a 60-day transition. Now it only allows a trial of exactly 100 emails a day for the first two months, then forces a move to the Essentials plan from 19.95 USD a month. The rules changed suddenly. Your communication with customers breaks right away if you don't pay on time.

Mailgun's free plan is limited to 100 emails a day but keeps log history for exactly 1 day. This morning a customer asks why they didn't get yesterday's order notification, you look in the system and the log line has disappeared, with no evidence to check against. Its Basic plan starts at 15 USD for 10,000 emails, which is 39 VND per email, thirteen times the 3 VND overage of a domestic system. Send past your quota and you are charged an extra USD invoice.

That is why we built our own Postfix infrastructure located in Vietnam. We apply it directly to the MONA Cloud system email flow: three notification emails (domain verification, quota reaching 80%, and plan downgrade due to low funds) are all sent from noreply@monamail.vn and do not count against customer quota. A 5-minute cron handles renewals, quota monitoring and webhook retries, and you only need to call GET /v1/emails/{id} to see the clear status of each email instead of guessing. Everything is transparent.

International platforms are fine for testing, but for transactional email or security codes you should prioritize custom-built software paid in VND with full invoices. Having the system under your own control is always safer than leaving it to an outside party.

MONA Mail: stable transactional email for Vietnamese apps and software

gau mona ban giao he thong mona mail cho khach
Software customers at MONA get a ready-made, high-speed transactional email flow with invoices.

Every month you look at the credit card statement showing tens of dollars charged for automated order-confirmation emails, and accounting grumbles because this foreign-currency expense has no valid red invoice to book for tax. As you scale, keeping transactional email stable eats a lot of money and creates a maintenance nightmare whenever the system suddenly hangs. Your engineers only come back with academic theory from the internet and can't fix it for good. The money keeps flying away.

When we take over a client's system, we often see thousands of orders stuck with timeout errors just because an international mail server responded a few seconds slowly, forcing a complete rewrite of the internal retry flow. MONA Mail comes with a full API and SDK to solve the cost and legal problem for you. Instead of a foreign 15-dollar Basic plan, our Starter plan is designed at only 99,000 VND for 30,000 emails, 3 VND per email beyond that, and the Free plan gives 3,000 emails upfront.

A smart VND wallet that stops the overage when funds run out

With foreign services, going past the limit means the owner takes a reckless dollar invoice next month. We integrated the shared MONA Cloud VND wallet into MONA Mail, so when the wallet runs out, the API automatically returns a 402 error and pauses sending the excess. Shop owners integrate online payment into your website can relax because the email flow never quietly eats money, and a valid red invoice arrives right after payment. No hidden fees.

System emails do not count against the quota

We use the MONA Cloud system email flow for real in this release. The three emails for domain verification, hitting 80% of quota, and plan downgrade are all sent straight from noreply@monamail.vn and are not deducted from the customer's quota. We eat our own cooking. The system cron runs every 5 minutes to handle renewals, monitor volume, and retry webhooks automatically. This way your technical team sees the status of each email directly through the API, without having to guess.

If you plan to send marketing emails by the million, we say plainly: don't use MONA Mail right now. In the current version the system still uses shared IPs, so we configured it specifically for transactional order-confirmation emails. The Postfix infrastructure located in Vietnam is designed so it fits smoothly into projects custom software serving domestic businesses.

The same features also apply to spas, restaurants and retail

luong thu tu dong cho spa nha hang ban le mona
Every industry with a large customer base needs automated notification emails to reduce the load on staff.

A spa chain manager grimly watches three empty beds on the weekend because customers canceled at the last minute, while the receptionist had to copy each phone number by hand to send reminder texts. Busy staff forgetting to send reminders makes customers forget to come, and the rent and wages for that hour are thrown out the window. This is where the money is lost.

Taking over many companies' old systems, we see that having staff type invoice or order emails by hand always causes missing information. Once a customer books, the system sends a spa appointment reminder 24 hours ahead, a restaurant pushes the invoice as soon as the table pays, and a retail shop sends a confirmation email to the buyer as soon as the order closes. Machines never forget.

MONA Mail is built for transactional email flows such as sending OTP codes, order notices and renewal reminders. Don't go registering foreign services on your own and then panic over a foreign-currency bill from going over the plan. Use our Starter plan directly at 99,000 VND for 30,000 emails. We run this system for MONA Pay itself, and on 17/09/2026 the real sending flow was stable right after we fixed the DKIM conflict, with all 147 API tests passing.

Customers get a receipt the moment they finish paying when you combine integrate online payment into your website with this transactional email flow. We remind you that the system uses shared IPs, so never use it to send mass advertising or promotional spam, or it will backfire.

Frequently asked questions about automated email flows

gau mona giai thich cau hoi thuong gap ve mail
Understanding how a mail server really works helps you avoid unfair email bounces.

Open a documentation page and dozens of tangled commands hit you in the face, making your engineers switch off the screen. The problem with automated email has never been the function call. It is always stuck at the DNS setup, making sure email doesn't get pushed straight into the spam folder, and that is where the errors usually are.

Handling the JavaScript library and sending status

Instead of making your engineers wrestle with English documentation, we provide a single API with SDKs for Node, Python and PHP and documentation fully in Vietnamese. Just throw this documentation at your AI coding tool Agentic Vibe Coding and you will get working email-sending code that runs smoothly. When an email is pushed out, the server returns a 201 code for pending status. Our system only records a successful delivery when the other end actually receives the message and returns a log. We don't make up numbers.

DKIM setup and the risk of misconfiguration

A domain you spent ages building up can lose all its ranking overnight after one staff member mistypes a DNS setting. To prove the emails you send are genuine, our system requires verification with a DKIM record using the selector mona1 and an RSA 2048 key pair. The SPF record is really only a warning, and without proper DKIM, the server's reputation will drop straight down. If an email is stuck because of a network error, our automatic processing flow retries after one second, five seconds, twenty-five seconds, two minutes and ten minutes. Only after all five rounds, if the destination server still refuses, do we record a failure. We just follow the process.

Shared IP vs dedicated IP

The MONA Mail trial platform, checked on 01/08/2026, is configured by default so all users run on one shared IP cluster. This design fits transactional flows such as verification codes or e-invoices issued from custom software. Never use this system to blast millions of advertising emails a day unless you want your domain reputation to vanish instantly. To send high-volume campaigns, you need to pay for a dedicated system with a dedicated IP warm-up process. Each job has its own tool.

Has your system dropped any OTP emails this week?

gau mona tang goi 3000 email mien phi
Get 3,000 free transactional emails a month on infrastructure in Vietnam.

On Monday morning a customer phones in, loudly complaining about not receiving an order confirmation code since last night, and the staff open the system to find a blank screen with no trace left. We run into this annoyance all the time when we take over projects using the Mailgun free plan, because that platform keeps email logs for exactly one day. The evidence vanishes. You have to swallow your pride and apologize even though it wasn't your fault. See also: MONA's vibe coding toolkit, free Claude Code course.

For peace of mind, you use the paid plan. The Mailgun Basic plan costs about 390,000 VND a month for 10,000 emails, which works out to 39 VND per email sent. That is 13 times the overage price of 3 VND/email at MONA Mail, not to mention you have to swipe a Visa card and receive a USD invoice that is hard to book. If you go over the limit, next month the card is quietly charged. This is absurd.

Khi custom software for large retail chains, we understand that transactional emails like OTPs or renewal reminders are lifeline flows that must never drop. A "queued" status in a foreign system doesn't mean the email has arrived. "Delivered" doesn't mean the customer opened it either, and we see this confusion all the time. MONA's infrastructure in Vietnam lets on-duty staff see the exact status of each email through webhooks. When something fails, the system tells you right there, with no guessing.

Right now, MONA gives 3,000 free emails a month at monamail.vn so you can test stability. Never mix your daily transactional email flow with bulk email marketing infrastructure. Emails get caught in spam easily. If your app keeps dropping emails and losing customers, call hotline 1900 636 648 directly and we will settle it for good.

A manifesto for growing together

MONA is a software, digital transformation and AI transformation company, but above all, MONA is a B2B service company that benefits directly from this: THE MORE SUCCESSFUL VIETNAMESE BUSINESSES BECOME, THE MORE MONA BENEFITS, while a declining, slow market with weak technology is exactly what kills MONA's future business opportunities. So, more than anyone, MONA wants you to succeed, and MONA actually steps in to help you succeed.

And AI transformation is the key to that success for all of us.

MONA

Control every Vietnamese dong with a domestic mail server

Every month you see the USD bill charged straight to your Mastercard plus a currency conversion fee, and you know you are paying for plenty of surplus server features. We understand you always tell your team to squeeze under the free ceiling to cut operating costs. Many business owners have tried having staff assemble their own mail system, or buying patchy cheap plans. But when the app drops OTP codes and order confirmations land in spam, the IT team spends the whole afternoon digging through logs. The money still flows out. That is why we put MONA Mail into beta with servers located in Vietnam. The system comes with 3,000 free emails a month, and paid plans in Vietnamese dong start at just 99,000 VND for 30,000 emails. Top-ups share the MONA Cloud wallet, and we charge exactly 3 VND per email beyond the limit. If your app sends notifications to Vietnamese customers and emails keep dropping, call 1900 636 648 or click Gấu Cười. Get rid of that USD debt.

Get 3,000 free emails at MONA Mail Call 1900 636 648

MONA has a podcast: listen instead of readingEpisodes on AI, automation & SEO for Vietnamese businesses
Nghe ngay
About the author

CEO & Founder · The MONA

Founder of The MONA, who built a services company of 60+ staff with 14,000+ projects delivered. Khánh Hùng shares how he thinks about building systems that run themselves, automating a business, and the real lessons from delivering projects at MONA.

Views 313
Rate this article 4,9/5 · 12 ratings

Professional website
design services

Own a website with a beautiful, 100% exclusive design and a lifetime warranty, with the ability
to expand features flexibly as your business grows, starting today!

Contact Mona

    MONA có riêng một Người "Bạn Thân" cho bạn - Người Account sẽ đồng hành, hỗ trợ, hướng dẫn, đặt đồ ăn cho bạn mãi mãi, từ đây về sau!
    MONA will never sell your information or send you spam
    The MONA team advising on an online education management system
    Hỏi đáp giáo dục 4.0
    Tạo cuộc hẹn miễn phí với MONA để giải đáp và tư vấn mọi thắc mắc về giải pháp số hoá ngành giáo dục
    Thời lượng cuộc hẹn
    45 Phút
    Ngày và giờ
    Thứ 2, ngày 25 tháng 12, 2023
    [9:30 - 10:15]

      Chọn ngày và giờ
      Khung giờ
      Back
      Hãy cho MONA biết bạn là ai
      0:00