The .Net SmtpClient's Send
method returns void. It only throws two exceptions, SmtpException
and a FailureToSendToRecipientsException
(or something like that).
When using SES, for successful email delivery SES sends back a 200 OK message with the message id. This message id needs to be tracked.
How do I do this using the C# SMTP api?
Edit: The SMTP protocol mentions various response codes sent by the SMTP server. I am looking for a SMTP library that exposes the "final" response code to the caller. I am already aware of the SES HTTP API. I am not looking to use that for the moment.