Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

SmtpBuildBounce

function SmtpBuildBounce(const aEnvelope: iSmtpEnvelope; const aOriginal: tBytes; const aPostmaster, aServerName, aError: string; aReason: tSmtpFailureReason): tBytes;
Builds an RFC 3464 delivery-status notification for a message that could not be delivered: a human-readable part, a machine-readable message/delivery-status and the head of the original. Exposed because it is worth being able to look at what a bounce will say without provoking one.