DEV Community

loading...
LoginRadius

Different ways to send an email with Golang

mohammed786 profile image Mohammed Modi Originally published at loginradius.com on ・1 min read

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

Discussion (1)

pic
Editor guide
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