messagestatus Field

messagestatus Field

The transport status of the message.

Full Name

https://schemas.microsoft.com/cdo/smtpenvelope/messagestatus

OLE DB Type

DBTYPE_I4

Variant SubType

Long

long

Remarks

The message transport status can have one of three values defined by the CdoMessageStat enumeration:

Name Value Description

cdoStatSuccess

0

Success. Continue to deliver the message.

cdoStatAbortDelivery

2

Do not deliver the message.

cdoStatBadMail

3

Do not deliver the message and place it in the bad mail location.

Event sinks use this field to alter the transport status of the message, indicating to the transport whether to continue delivery of the message, to discard it, send it to the bad mail directory.

See Also

Concepts

CdoMessageStat Enum
EnvelopeFields Property
SMTP/NNTP Transport Events Sinks with CDO