Sub topic 6
Legal basics: what the major rules require
This chapter assumes you can already tell newsletters, promotions, and transactional messages apart, and that you know why consent matters. It covers what the main legal regimes require from each type: CAN-SPAM in the United States, and GDPR plus the ePrivacy rules in Europe. It is a working summary for engineers and marketers, not legal advice. Have counsel review anything that affects your sending program.
Why the rules differ by region
Two different legal designs exist, and most other laws follow one of them.
- Opt-out (United States, CAN-SPAM). You may send commercial email without prior permission. You must be honest about who you are, and you must stop when someone asks.
- Opt-in (EU, UK, and others). You need a lawful basis before you send marketing to an individual. For most cold or non-customer contacts, that basis is consent.
If your list contains recipients from several regions, the strictest rule that applies to a recipient is the safe default. Many senders apply opt-in practices to everyone for this reason.
CAN-SPAM (United States)
The CAN-SPAM Act regulates commercial messages, meaning those whose primary purpose is advertising or promoting a commercial product or service. It does not require prior consent. It requires the following:
- Accurate header information. The From, To, and routing details must be truthful. The "From" name must identify the actual sender.
- Non-deceptive subject lines. The subject must reflect the content of the message.
- Identification as an advertisement. Required where the recipient has not given affirmative consent.
- A valid physical postal address. This can be a street address, a registered PO box, or a private mailbox.
- A clear opt-out mechanism. The notice must be easy to see and understand.
- Prompt opt-out handling. You must honor requests within 10 business days. You cannot charge a fee, require more than an email address, or make the person do more than reply or visit one web page.
- No resale of opted-out addresses. You are also responsible for what vendors send on your behalf.
Penalties can exceed $50,000 per violating email, and both the sender and the advertised company can be liable.
How CAN-SPAM treats each type
| Type | CAN-SPAM treatment |
|---|---|
| Promotional email | Fully covered. All seven requirements apply. |
| Newsletter | Covered if its primary purpose is commercial. A purely informational newsletter may fall outside the "commercial" definition, but most business newsletters promote something, so treat them as covered. |
| Transactional or relationship message | Exempt from most requirements, but header information must still not be false or misleading. |
A message counts as transactional or relationship under the Act when its primary purpose is to complete a transaction the recipient agreed to, give warranty or safety information, notify about account changes, or deliver goods or services already agreed to. The Act uses a "primary purpose" test, which is why the next chapter covers mixed-content messages in detail.
GDPR (EU) and the UK equivalent
GDPR governs how you collect and use personal data, and an email address is personal data. Sending email therefore needs a lawful basis under Article 6. Three bases matter for email:
- Consent. The person agreed to a specific use.
- Contract. Processing is necessary to deliver something the person asked for, such as a receipt or password reset.
- Legitimate interests. You have a justified interest that does not override the person's rights. This needs a documented balancing test.
What valid consent looks like
GDPR consent must be freely given, specific, informed, and unambiguous, and given by a clear affirmative act. In practice:
- No pre-ticked boxes. The EU Court of Justice ruled in Planet49 that these do not produce valid consent.
- No bundling. Do not make consent to marketing a condition of buying a product, unless marketing is needed for the service.
- Separate purposes. Weekly newsletters and third-party offers need separate choices.
- Proof. Store who consented, when, from which form or IP address, and the exact wording shown.
- Easy withdrawal. Withdrawing must be as easy as giving consent (Article 7(3)).
The right to object
For direct marketing, a person can object at any time, and the objection is absolute (Article 21). Once someone objects, you must stop using their data for marketing. Fines for serious infringements can reach €20 million or 4% of global annual turnover, whichever is higher.
ePrivacy rules and the soft opt-in
GDPR is the general data law. The ePrivacy Directive (Article 13) adds a specific rule for electronic marketing: you need prior consent to send marketing email to individuals. EU member states implement it in national law, and the UK has the Privacy and Electronic Communications Regulations (PECR).
There is one important exception, the soft opt-in. You may send marketing without fresh consent when all of these hold:
- You obtained the person's address while selling them a product or service.
- You market only your own similar products or services.
- You gave a clear chance to refuse when you collected the address.
- You give a chance to refuse in every later message.
The soft opt-in does not extend to prospects who never bought anything, to purchased lists, or to unrelated products. Business-to-business rules vary. The UK treats messages to corporate addresses more loosely than messages to sole traders, while Germany applies strict opt-in to business addresses as well. Check each country where you have recipients.
How the EU rules treat each type
| Type | Typical legal basis |
|---|---|
| Newsletter | Consent, collected at signup. Soft opt-in applies only if the content is marketing of similar products to customers. |
| Promotional email | Consent, or the soft opt-in for existing customers. |
| Transactional email | Contract (or legal obligation). Marketing consent is not required, but the content must stay limited to service purposes. |
Other regimes to know
- CASL (Canada) requires express or implied consent, identification of the sender, and a working unsubscribe. Penalties are high, and implied consent expires after set periods.
- Australia's Spam Act also requires consent, sender identification, and an unsubscribe facility.
If you send to these countries, check their rules before you use the US opt-out model.
A decision flow
Turning the rules into a pre-send check
You can encode the basic decision in your sending code so that marketing messages without a valid basis never leave your system. The function below is a simplified policy gate. It does not replace legal review, but it makes your assumptions explicit.
from dataclasses import dataclass
@dataclass
class Recipient:
region: str # "US", "EU", "UK", or "OTHER"
has_consent: bool # recorded opt-in for marketing
is_customer: bool # bought something from us
bought_similar: bool # message promotes similar products
opted_out: bool # suppression list entry
def may_send(message_type: str, r: Recipient) -> tuple[bool, str]:
"""Return (allowed, reason) for 'transactional', 'newsletter', or 'promotional'."""
if message_type == "transactional":
return True, "service message, no marketing consent needed"
if r.opted_out:
return False, "recipient opted out"
if r.region == "US":
return True, "CAN-SPAM: include address and opt-out"
if r.region in ("EU", "UK"):
if r.has_consent:
return True, "consent on record"
if r.is_customer and r.bought_similar:
return True, "soft opt-in: offer opt-out in message"
return False, "no consent and no soft opt-in"
return False, "unknown region: require consent review"
if __name__ == "__main__":
eu_prospect = Recipient("EU", False, False, False, False)
print(may_send("promotional", eu_prospect))
print(may_send("transactional", eu_prospect))The gate fails closed for unknown regions, and it checks suppression before anything else. Both choices are intentional.
Common mistakes
- Treating a purchased list as consented. Under GDPR and ePrivacy, the buyer of a list has no consent from those people. Under CAN-SPAM, it is legal but harms reputation.
- Using the soft opt-in for prospects. It requires a prior sale.
- Slipping promotion into receipts. A receipt stays transactional only while its primary purpose is the transaction. Large promotional blocks can change how regulators classify it.
- Ignoring opt-outs from other channels. A reply saying "stop emailing me" counts as an opt-out request.
- Keeping no consent records. You must be able to show consent if challenged.
Summary
CAN-SPAM lets you send first and requires honesty and a working opt-out. GDPR and ePrivacy require a lawful basis first, and for marketing that usually means consent, with the soft opt-in as a narrow exception for existing customers. Transactional messages sit outside marketing consent rules in both systems, as long as they stay focused on the transaction. The next chapter covers what happens when a single message does both jobs.
Exercise
A German visitor downloads a free guide and enters their email address. There is a pre-ticked box reading "Also send me weekly offers." Two weeks later you send them a promotional email. Which rule is broken, and what should you change?
Show answer
The pre-ticked box does not produce valid GDPR consent (Planet49), and the visitor never bought anything, so the soft opt-in does not apply. Sending marketing breaks the ePrivacy opt-in rule. Fix it by using an unticked checkbox with a separate, specific purpose, storing a consent record (time, form, wording), and sending the offers only to people who tick it.
Exercise
A US customer asks for a password reset. Your reset email also includes a large banner for a sale. Under CAN-SPAM, what risk does the banner create?
Show answer
CAN-SPAM judges a message by its primary purpose. If the promotional content gets more prominence than the reset, the message could be treated as commercial. Then all seven requirements apply, including a postal address and an opt-out. Remove the banner, or keep the message clearly focused on the reset.