Skip to main content

MAIL_FROM

Constant MAIL_FROM 

Source
pub const MAIL_FROM: &str = "MAIL_FROM";
Expand description

Name of the Worker variable holding the sender address.

Either noreply@example.com or Name <noreply@example.com> (the name may be quoted). Missing or unparsable is an Error::Internal when sending. With Resend or Cloudflare the domain must be verified with that provider.

ยงExamples

assert_eq!(ocre::mail::MAIL_FROM, "MAIL_FROM");