# @weft/email Email for Weft: sending through Resend and Postmark, MIME messages with attachments, and templates that render to HTML and text. Its only capabilities are `http.fetch@api.resend.com`, `http.fetch@api.postmarkapp.com` and `http.media`, because its `Img` component shows the image a template names. ```sh weft add weft/email ``` ```weft import { send } from "@weft/email" import { resend } from "@weft/email/resend" import { document } from "@weft/email/template" import { render } from "std/app" import { env } from "std/process" import Receipt from "./Receipt" let mail = resend({ apiKey: env("RESEND_API_KEY")! }) let body = document(render(Receipt, { name: "Ana", total: "19,99 €" }), { title: "Your receipt", preheader: "Thanks for your order", footer: "Example d.o.o., Ljubljana", }) let sent = try await send(mail, { from: { email: "info@example.com", name: "Example" }, to: ["ana@example.com"], subject: "Your receipt", html: body.html, text: body.text, }) ``` ```weft file=Receipt.weft import Button from "@weft/email/components/Button" import Facts from "@weft/email/components/Facts" import H1 from "@weft/email/components/H1" import P from "@weft/email/components/P" import Strong from "@weft/email/components/Strong" prop name: string prop total: string ---

Thank you!

Hi {name}, your payment came through.