DEV Community


Different ways to send an email with Golang

mohammed786 profile image Mohammed Modi Originally published at 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)

Editor guide
tmack8080 profile image

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 port 587
SMTP encryption method STARTTLS