Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 496 Bytes

File metadata and controls

19 lines (11 loc) · 496 Bytes

SMTP Email sending example

Sending a simple email over an SMTP server using Golang.

Requirements

  • Local golang installation

Getting started

First, you need to add the settings of your SMTP server. If you don't have an SMTP server, you can use ethereal for testing purposes.

After that, you need to set the email details like the email address, subject, and body.

Then you can run the application using the following command.

go run email.go