The DSNType property returns whether or not the message is a DSN.
Returns an Integer value.
The DSNType property may return on of the following values:
0 The message is not a DSN
1 The message is a standard DSN (see RFC1894
for details)
2 The message is a simulated DSN constructed from a non
standard failure notification message.
Whenever possible, eMill will try to simulate a DSN message based on various format that older mail server sends out.
DSN stands for "Delivery Status Notifications", it is an ESMTP extension that is implemented by most modern mail servers. See RFC1891 and RFC1894 for details.
Sub Mailing_OnReceiveMail
If Mail.DSNType<>0 Then '
Remove delivery status notifications messages
Mailing.RemoveReceivedMail
Else ' Forward to sales department
Mail.Receivers.RemoveAll
Mail.Receivers.Add "sales@emilltest.com"
Mailing.SubmitMail Mail
End If
End Sub