Interface ISmtpResult

interface ISmtpResult {
    connectionFailed: boolean;
    message: string;
    smtpResponseCode: number;
    success: string;
}

Properties

connectionFailed: boolean

could not resolve domain name, connection refused, connection timed out, SSL mismatch

message: string

error message from SMTP middleware .. a bit technical but could be useful to administrator

smtpResponseCode: number

smtp result code string from the SMTP server. eg. "250 2.6.0"

success: string

was SMTP operation successful or not. Other fields herein provide more detail