DEV Community

Mohammed Modi for LoginRadius

Posted on • Originally published at loginradius.com on

Different ways to send an email with Golang

In this blog, we’ll look at different methods to send an email with Go, First we will explore inbuilt smtp package, then we will move to use a popular package Gomail and finally we will send HTML emails using custom templates.

Read On

Top comments (1)

Collapse
 
tmack8080 profile image
tmack8080

Can you provide an example for Outlook? It uses the STARTTLS extension. I've not been able to find a good example:

SMTP server name smtp-mail.outlook.com
SMTP port 587
SMTP encryption method STARTTLS