Sending Mails with SMTP
This lesson explains how Go code can be used to send an email using an SMTP server.
We'll cover the following...
Overview of SMTP in Go #
The package net/smtp
implements the Simple Mail Transfer Protocol for sending mail. It contains a Client
type that represents a client connection to an SMTP server:
Dial
returns a newClient
connected to an SMTP server.- Set
Mail
(=from) andRcpt
(= to) Data
returns a writer that can be used to