Email sending

Last updated Jun 9, 2026 Advanced patterns and examples for sending emails with Cloudflare Email Service. Most examples use the Workers binding; the same EmailMessageBuilder fields (to, from, subject, html, text, cc, bcc, replyTo, attachments, headers) apply to the REST API as JSON in your HTTP request body. The Send email over SMTP example covers sending over SMTP from several languages and clients.

Was this helpful?

YesNo

On this page

Email sending - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/email-service/examples/email-sending/#page","headline":"Email sending","description":"Advanced patterns and examples for sending transactional emails with Email Service.","url":"https://developers.cloudflare.com/email-service/examples/email-sending/","inLanguage":"en","image":"https://developers.cloudflare.com/email-service/examples/email-sending/og.png?v=c52f52e1d819eca1","dateModified":"2026-06-09","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Handle different types of email attachments including PDFs, inline images, and file uploads with validation and encoding. title: Email attachments image: https://developers.cloudflare.com/email-service/examples/email-sending/email-attachments/og.png?v=55b81084399408df


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/email-service/llms.txt
Use this file to discover all available pages before exploring further.