Choose the delivery contract before choosing the provider: a property report belongs in a durable, versioned email workflow, with European SMS alerts treated as a separate notification whose success cannot establish that the attachment arrived. A cheap alert carrying the wrong report status is still a failed workflow.
TL;DR: Compare European SMS providers on the evidence they expose at each handoff, then evaluate pricing against that same delivery contract. Preserve the exact generated attachment, record uncertain submissions, and keep SMS receipt state separate from email acceptance and report access. Delivery reliability depends on preserving those distinctions.
For a property-management system sending a generated report as an email attachment, the difficult boundary is the transition from stored bytes to an external delivery attempt. This architecture decision record examines that boundary through data integrity. It supplies comparison criteria rather than a country coverage ranking: the evidence cited here does not establish provider-specific European delivery rates or current tariffs.
What must remain true when a report leaves storage?
The proposed invariants are straightforward. Each dispatch refers to one immutable report version, one intended recipient, and one recorded attachment digest. A changed report creates a new version and a new dispatch decision. An SMS alert records its own outcome; it never advances the email attachment to a delivered state. These are application rules, not claims that a messaging network supplies a transaction across both channels.
Keep the bytes.
Regenerating a report during a retry would make reproducibility depend on whatever source data, rendering code, and configuration happen to exist at that later moment. Instead, retain the generated artifact for a defined business retention period and bind the dispatch to its digest before attempting delivery. A digest can detect a mismatch between the retained attachment and the expected content; it cannot prove that the report's underlying figures are correct, that the intended person received it, or that the storage system will retain it durably. Those require separate controls.
The storage boundary needs an explicit deployment contract: reads for a dispatch must return the committed version, and retention must cover the period in which that dispatch can be retried or investigated. Treat those requirements as acceptance criteria for the selected storage configuration. An object identifier alone is insufficient evidence.
There is also a size boundary. RFC 2045 defines base64 encoding in groups of four characters for three input octets, so its encoded payload length is 4 × ceil(n / 3), before line breaks and message headers. A preflight check should evaluate the complete serialized message against the selected transport's documented limit; checking only the stored PDF length leaves out encoding overhead. No universal attachment-size limit is assumed here.
Decision record: separate the artifact from its notifications
The decision is to store the report once, create an email dispatch record that identifies that artifact, and manage any SMS alert through a separate record linked to the same report version. A provider comparison becomes meaningful only after a team decides which delivery contract it needs.
| Design option | Evidence the application preserves | Failure boundary and trade-off |
|---|---|---|
| Generate and send inside the web request | Whatever the request records before it ends | A lost response can leave submission uncertain; the implementation is compact, but recovery needs an explicit policy. |
| Persist the artifact and an email dispatch | Intended version, attachment digest, recipient, and attempt history | Requires retention and worker coordination; preserves a stable object for reconciliation. |
| Add a separate SMS alert to the persisted workflow | Email state and SMS state remain independently inspectable | Adds another delivery path and more events; useful when an alert has value beyond the email itself. |
For the property-report job, select the second option as the baseline, adding the third only when the alert has an agreed purpose. “Report generated,” “email submitted,” and “report accessed” are different possible messages. Pick one. Don't let an alert template silently change the promise the system makes.
SMTP provides a concrete reason to be careful with state names. RFC 5321 describes the receiving server's responsibility after accepting a message; a successful SMTP handoff does not establish that a human has opened the attachment. Delivery status notifications have their own standardized structure in RFC 3464. Neither is evidence that the recipient reviewed the report.
SMS evidence needs equally narrow interpretation. During procurement, ask each candidate to document what submission responses and delivery receipts mean, what identifiers are returned, how receipts are correlated, and which destination-specific limits apply. A European region label is insufficient information. The comparison remains incomplete until the candidate supplies those boundaries.
The critical path verifies bytes before handing them off
The following Python sketch makes the integrity gate visible. The storage, state, and mail arguments are application-owned interfaces, not public API routes. The worker must already hold a dispatch claim, and item must identify the committed report version. The mail adapter contract requires accepted to mean that the remote transport acknowledged the submission; all transport timeouts must surface as TimeoutError.
from hashlib import sha256
def submit_report(item, storage, state, mail):
attachment = storage.read_version(
item.object_key, item.object_version
)
observed = sha256(attachment).hexdigest()
if observed != item.attachment_sha256:
state.block(item.dispatch_id, reason="digest_mismatch")
return
# Commit the attempt before crossing the network boundary.
attempt_id = state.begin_attempt(item.dispatch_id)
try:
result = mail.submit(
recipient=item.recipient,
attachment_name=item.attachment_name,
attachment_bytes=attachment,
correlation_id=attempt_id,
)
except TimeoutError:
state.mark_unknown(attempt_id)
return
if result.accepted:
state.mark_accepted(attempt_id, result.message_id)
else:
state.record_rejection(attempt_id, result.reason)
This is a submission path, not a complete worker. The state implementation must persist begin_attempt before the network call and preserve unfinished attempts for reconciliation. Storage read failures should leave the dispatch unsent. A worker restart must inspect its existing attempt record before initiating another submission. The adapter must also distinguish an explicit rejection from an inconclusive transport failure.
The awkward case comes after remote acceptance but before the local acceptance record commits. The same uncertainty occurs if the remote side accepts the message and its response never reaches the worker. A correlation identifier helps investigation; it does not, by itself, deduplicate delivery. If a candidate offers an idempotency mechanism, verify its scope and retention before depending on it. Otherwise, the design needs a documented decision about when an uncertain attempt may be submitted again and who accepts the duplicate risk. Consider a hypothetical report dispatch whose first attempt remains unfinished when its worker restarts: the stored artifact and digest establish what was intended, while the unfinished attempt establishes that a handoff may already have occurred. The recovery worker should inspect available transport evidence under the same attempt identity, preserving the distinction between an absent acknowledgement and an explicit rejection. If no evidence resolves the handoff, escalating the uncertainty is a defensible policy; submitting again is another policy, but it must explicitly accept the possibility of duplicate email.
Unknown stays unknown.
That state is operationally inconvenient, but relabeling it as failure would authorize a retry without evidence that the first attempt failed. Keeping the uncertainty visible is the useful storage-oriented choice: the durable record describes what the application knows.
How should European SMS alert providers demonstrate reliability before pricing is compared?
Use the same report workflow and destination set for every candidate.
For a proposed evaluation, capture the report version, channel, local attempt identifier, remote identifier when supplied, submission outcome, receipt outcome, and timestamps. Keep receipt histories so a later event can be interpreted alongside the earlier ones. This is an evaluation design, not a measured benchmark.
The acceptance exercise should cover three specific boundaries: loss of the submission response, repeated receipt processing, and worker restart with an unfinished attempt. Add an attachment digest mismatch to the email path. The expected behavior is observable: a mismatch blocks submission, repeated events do not create a new report version, and an unfinished attempt enters reconciliation instead of silently becoming a fresh send. These checks exercise the application contract before candidate-specific transport behavior is tested.
For European destinations, request evidence for the countries and recipient networks actually in scope, together with the restrictions and receipt semantics applicable to those routes. Document where that evidence stops. An aggregate success figure without its destination mix, observation window, and definition of success cannot settle this property's delivery decision. Run a limited rollout with representative destinations before widening traffic, and inspect unresolved attempts as well as explicit rejections.
Pricing belongs beside those findings, with its assumptions visible. Ask each candidate how the intended message content is billed, how retries and rejected submissions are treated, and which destination or sender-related charges apply. Compare quotes for the same workload and outcomes. This is a procurement method, not evidence that any particular provider uses a particular charging rule. A low quote cannot compensate for missing evidence about the agreed delivery contract.
The operational trade-off is extra state and support work. Separate counters for attachment verification failures, unknown submissions, accepted email handoffs, and SMS receipt outcomes give responders something concrete to investigate; one blended “sent” counter would conceal the boundary that failed. Agree on ownership of unresolved attempts before deployment, because a durable record is useful only if somebody can act on it.
Rejected option: rebuild and repeat every uncertain submission
Reject automatic regeneration followed by unconditional resubmission for a report whose exact version matters. It couples content changes to delivery recovery and makes an ambiguous handoff a potential duplicate. Keeping the artifact fixed does not remove network uncertainty, but it prevents that uncertainty from changing the report being sent.
A simpler generate-and-send path can be appropriate for a disposable preview when its owner explicitly accepts loss, duplication, and regeneration from newer data. That's a valid, narrower contract. It's a poor default for an attachment the property team expects to reconcile later.
For the report workflow, preserve the artifact, name every handoff precisely, and evaluate SMS alerts as a separate channel. Choose against documented destination behavior and inspectable evidence, then check whether the commercial terms fit the same workload. An accepted alert is useful evidence about an alert; the report still needs its own delivery record.
References
- RFC 5321 — Simple Mail Transfer Protocol: https://www.rfc-editor.org/rfc/rfc5321
- RFC 2045 — MIME message bodies and transfer encodings: https://www.rfc-editor.org/rfc/rfc2045
- RFC 3464 — Delivery Status Notifications: https://www.rfc-editor.org/rfc/rfc3464
Top comments (0)