Skip to content

Latest commit

 

History

History

SendEmail

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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