How to confirm that mail has been delivered or not?

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:

  1. There’s no guarantee your message is sent as soon as you call smtp.Send().
  2. Since SMTP is routed, you can’t be sure that some node on the route won’t fail with delivery to uplink.

Leave a Comment