hMailServer.Delivery.MessageDeliverer.SubmitBounceMessageAsync C# (CSharp) Méthode

SubmitBounceMessageAsync() private méthode

private SubmitBounceMessageAsync ( Message message, IEnumerable failedRecipients ) : Task
message hMailServer.Entities.Message
failedRecipients IEnumerable
Résultat Task
        private async Task SubmitBounceMessageAsync(Message message, IEnumerable<DeliveryResult> failedRecipients)
        {
            if (string.IsNullOrWhiteSpace(message.From))
                return;

            if (IsMailerDaemonAddress(message.From))
                return;

            // TODO: Dont' hardcode this.
            string bounceMessage = string.Format(@"Your message did not reach some or all of the intended recipients.

   Sent: %MACRO_SENT%
   Subject: %MACRO_SUBJECT%

The following recipient(s)could not be reached:

%MACRO_RECIPIENTS%

hMailServer");

            throw new NotImplementedException();

        }