0 votes

We have been using Mail.dll for a long time now. We have noticed that a lot of our email are undelivered. The point is we are getting to many emails back like "Undeliverable: Your email was not Delivered".

These email just fill our inbox but we do not care about it and we do not want such bounce responses.

I tried the following to try to stop such emails by following this link.

using (Smtp smtp = new Smtp())
    smtp.UseBestLogin("user", "password");
        = DeliveryNotificationOptions.Never;

    IMail email = Fluent.Mail.Text("Some text")
        .Subject("Some subject")
        .From(new MailBox("from@example.com"))
        .To(new MailBox("to@example.com"))



But I am still getting such bounce email back. Please help. Thanks

by (1.2k points)

1 Answer

0 votes

Mail.dll sends this configuration parameter to your SMTP server. E.g.:

S: RCPT TO:<test@example.com> NOTIFY=NEVER

This options is available and used only if SmtpExtension.DSN is reported by Smtp.SupportedExtensions().

You server might be not supporting this extension.

Also if your server simply ignores it there's nothing you or Mail.dll can do about it. You can only turn on logging and make sure that NOTIFY parameter is included.

by (282k points)