Skip to main content

3 posts tagged with "smtp"

View All Tags

Attachments: per-message total, a higher ceiling, virus scanning, and a stricter bar for files

  • A per-message total. Besides the number of files and the largest single file, your plan now has a limit on the total of all files in one message (features.attachments.maxTotalSize in GET /api/billing/plans, in bytes of the raw files). A message over it is refused with 550 Email rejected: Attachments exceed <plan>'s total of <MB>MB per message (this message: <MB>MB).
  • The 10 MB whole-message ceiling is gone. The platform ceiling on the encoded message now sits above every plan's limits, so you normally meet your plan's limit first. The previous guidance of "keep files under about 7 MB" no longer applies. Recipients' mail providers still have their own receive limits, which differ: Gmail accepts up to 50 MB, many corporate gateways and other providers stop at 20 to 25 MB of encoded message.
  • Every attachment is virus-scanned before the message is accepted, whatever its size. A message that carries malware is refused with a 550. If the scanner is briefly unavailable the message is not accepted: SMTP gets a temporary 451 4.3.2 that your mail server retries on its own, and the same condition over HTTP is a 503 with Retry-After.
  • Messages with attachments are judged by the general content bar. The lower bar that transactional Motor Blocks get for plain mail does not apply once real files are attached. Inline images and other functional parts do not count as attachments.
  • Attachment refusals are specific over HTTP. Where a send reaches the converged path, plan refusals are 413 attachment_too_large or attachments_total_too_large, 422 too_many_attachments, attachment_type_not_allowed or attachments_not_allowed, each with plan, limit and actual in the body.

Documentation changed

SMTP: To and Cc show as you wrote them, and your list headers are kept

  • To and Cc appear as you composed them. Before, the outgoing message listed every SMTP recipient in the To header and dropped Cc, so a copy sent to several people showed all of them (a Bcc included) in To. Now each recipient sees your To and Cc headers, every recipient still receives the message, and an address that appears only in the SMTP envelope (a Bcc) is never named in any header. A message sent only to Bcc recipients is shown as To: undisclosed-recipients:;.
  • List and custom headers are kept. List-Unsubscribe, List-Unsubscribe-Post, Precedence, Auto-Submitted and your own X- headers now reach the recipient. Gmail and Yahoo's one-click unsubscribe rules need the first two. The same headers are refused as over the HTTP API (From, To, Cc, Bcc, Subject, Date, Message-ID, DKIM-Signature, Received and the authentication headers, and anything starting X-Motorical); a value longer than 998 characters or with control characters is dropped, and at most 20 are kept.
  • Nothing changes in who receives the message or who it is from.

Documentation changed

Transactional blocks can send attachments

  • Attachments on transactional Motor Blocks. A receipt or an invoice with its PDF is ordinary transactional mail, so transactional Motor Blocks now send attachments over SMTP, exactly like general_purpose ones. Before, they were refused with "Use a general_purpose motor block to send attachments". Your plan still decides whether attachments are included, how many per message and the largest file. Marketing blocks still do not send attachments.
  • The real size ceiling is 10 MB for the whole message. Files are base64-encoded for transport, so keep the total of all files under about 7 MB. This ceiling applies whatever your plan's per-file figure is.
  • Clear permanent errors. A message over 10 MB now gets 552 5.3.4 Message size exceeds limit (10MB), and a message with more than 100 recipients gets 452 4.5.3. Before, both returned a temporary 450, so a mail client kept retrying a message that could never be accepted. A message with no subject is now refused with 550 5.6.0.
  • New guide: Send attachments, with Node.js, Python and PHP examples. The HTTP API (POST /v1/send) still sends text and HTML only, with no attachments and no cc or bcc; the docs now say so plainly.

Documentation changed