The request timed out. Did it go through?
A report-ready email can be accepted even if the reply gets lost. Here’s how I check what happened before sending it again.
The reply can get lost after the work is accepted
Imagine a report is ready and the app asks a delivery service to send an email. The request times out. The service may never have received it, or it may have accepted the send before the connection dropped. If the app sends again immediately, the reader could get two emails about the same report.
Give the send a reference before it leaves
I keep a record for the intended email before calling the delivery service. If the response gets lost, I keep the original send marked as unconfirmed while checking for an update tied to that reference. A matching status lookup or delivery event can resolve it where the service supports one.
I record acceptance and delivery separately. If I can confirm the first request was never accepted, I can retry when the failure allows it. If I still can’t tell, I keep the send available for review.
Test both ways the reply can go missing
- In a test environment, accept a sample email and drop the reply. Check that the app shows an unconfirmed send. Feed back the acceptance using the original reference and check that it resolves with a single send.
- Try again with a separate sample. Drop the request before it reaches the delivery service, then supply evidence that it was never accepted. Check that a deliberate retry can send it.
- Compare the two histories. Check that each shows one accepted email and that the retry in the second history is tied to its original reference.