mail-send icon indicating copy to clipboard operation
mail-send copied to clipboard

Add Support for Delivery Status Notification (DSN) in SMTP Client

Open rustmailer opened this issue 9 months ago • 2 comments

Hi, I'm using the mail-send crate for sending emails in Rust and it works great for my needs so far. However, I noticed that there’s no direct support for configuring Delivery Status Notification (DSN) parameters, which are part of the SMTP protocol extension (RFC 3461). DSN is useful for receiving notifications about email delivery status (success, failure, or delay), and I’d love to see this feature added to the library.

DSN support depends on the SMTP server, but adding client-side configuration would make mail-send more versatile.

rustmailer avatar Feb 27 '25 06:02 rustmailer

Hi, you can pass parameters to the MAIL FROM and RCPT TO commands, see here for instance:

https://github.com/stalwartlabs/mail-send/blob/962518a299c5b6da5c44d9f4e090a10d14e8a236/src/smtp/envelope.rs#L19

mdecimus avatar Mar 02 '25 16:03 mdecimus

@mdecimus thanks, I'll try it

rustmailer avatar Mar 05 '25 18:03 rustmailer