ForwardableEmailMessage
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8699
An email message that is sent to a consumer Worker and can be rejected/forwarded.
Extends
Section titled “Extends”Properties
Section titled “Properties”
readonlyfrom:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8690
Envelope From attribute of the email message.
Inherited from
Section titled “Inherited from”headers
Section titled “headers”
readonlyheaders:Headers
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8707
An Headers object.
readonlyraw:ReadableStream<Uint8Array<ArrayBufferLike>>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8703
Stream of the email message content.
rawSize
Section titled “rawSize”
readonlyrawSize:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8711
Size of the email message content.
readonlyto:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8694
Envelope To attribute of the email message.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”forward()
Section titled “forward()”forward(
rcptTo,headers?):Promise<void>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8724
Forward this email message to a verified destination address of the account.
Parameters
Section titled “Parameters”rcptTo
Section titled “rcptTo”string
Verified destination address.
headers?
Section titled “headers?”Returns
Section titled “Returns”Promise<void>
A promise that resolves when the email message is forwarded.
reply()
Section titled “reply()”reply(
message):Promise<void>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8730
Reply to the sender of this email message with a new EmailMessage object.
Parameters
Section titled “Parameters”message
Section titled “message”The reply message.
Returns
Section titled “Returns”Promise<void>
A promise that resolves when the email message is replied.
setReject()
Section titled “setReject()”setReject(
reason):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8717
Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason.
Parameters
Section titled “Parameters”reason
Section titled “reason”string
The reject reason.
Returns
Section titled “Returns”void
void