All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Email Service - Email Sending now in public beta

2mo ago

Source

CloudflareEmail Service - Email Sending now in public betacloudflare.com
Snippet from the RSS feed
Email Sending is now in public beta. Send transactional emails directly from Workers ( env.EMAIL.send() ) or the REST API, with support for HTML, plain text, attachments, inline images, and custom headers. Email Sending joins Email Routing under the new Cloudflare Email Service — a single service for sending and receiving email on the Cloudflare developer platform. Send an email from a Worker in a few lines of code: JavaScript export default { async fetch ( request , env ) { const response = await env . EMAIL . send ( { from : "[email protected]" , to : "[email protected]" , subject : "Order confirmed" , html : "

Your order has been confirmed

" , text : "Your order has been confirmed." , } ) ; return Response . json ( { messageId : response . messageId } ) ; }, }; TypeScript export default { async fetch ( request , env ) : Promise < Response > { const response = await env . EMAIL . send ( { from : "[email protected]" , to : "[email protected]" , subject : "Order confirmed" , html : "

Your order has been confirmed

" , text : "Your order has been confirmed." , } ) ; return Response . json ( { messageId : response . messageId } ) ; }, } satisfies ExportedHandler < Env >; Email Service also integrates with the Agents SDK , giving your agents a native onEmail hook to receive, process, and reply to emails. Combined with the new Email MCP server and Wrangler CLI email commands, any agent can send email regardless of where it runs. Start sending and receiving emails from Workers and agents today. Email Sending is available on the Workers paid plan. Refer to the Email Service documentation to get started.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.