For a better quality Golang mock SMTP server, check out MailHog.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mailhog&#x2F;MailHog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mailhog&#x2F;MailHog</a>