You can’t. Since you use SMTP, in general case, it’s impossible to tell whether delivery succeeded or not. Read SMTP specification. Mail is routed while being delivered, so:
- There’s no guarantee your message is sent as soon as you call
smtp.Send()
. - Since SMTP is routed, you can’t be sure that some node on the route won’t fail with delivery to uplink.