Receiving Notifications for Successfully Sent and Failed Messages

Contents
[ ]

When you want to get the delivery notification for both successfully sent and failed messages, you can use the pipe (|) operator for the DeliveryNotificationOptions property of the MailMessage class. The following code snippet shows you how to receive notifications for successfully sent and failed messages.