Skip to content

Variable: emailResultSchema

const emailResultSchema: ZodObject<{ from: ZodString; messageId: ZodOptional<ZodString>; recipient: ZodString; sent: ZodBoolean; }, $strip>

Schema for the dispatch result returned to the model after a send.

  • sent: True once the message was handed to the SMTP server.
  • recipient: Echo of the to recipients (comma-joined) for confirmation.
  • from: The resolved sender address the message was actually sent from.
  • messageId (optional): SMTP message id assigned by the server, when one was returned.