GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexcoder04/gomail: Send emails via SMTP

BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
config.go
config.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

gomail

One day my friend asked me if it's possible to automate sending e-mails, so I decided it's a great opportunity to practice Go and here it is - a tiny program that can send e-mails via SMTP.

It was created for educational purposes only, don't use it to spread spam.

You need to have an account on a mail server (e. g. Gmail, Outlook or own server) to use this program!

How to install

Stable release

Download the executable for your operating system from https://github.com/alexcoder04/gomail/releases/latest.

Compiling yourself

git clone https://github.com/alexcoder04/gomail
cd gomail
make linux # or `make windows`

How to use (important!)

The program is configured with the following files:

<USER_CONFIG_DIR>/gomail/settings.yml

You can use another file by passing the -s flag (e. g. gomail -s mysettings.yml)

The host address can vary depending on your e-mail provider, most likely it's something like mail.example.com or smtp.example.com. The port is also different for different e-mail providers.

For the username, it is the part of the mail address before the @-sign for my provider, but it may be the full address (e. g. on Gmail) or something completely different for your e-mail provider.

From: [email protected]
Addr: smtp.example.com:587
Host: smtp.example.com
Username: [email protected]
Password: YourSecureP4ssw0rd
Subject: Hello friends!

<USER_CONFIG_DIR>/gomail/recipients.txt

You can use another file by passing the -r flag (e. g. gomail -r friendslist.txt)

[email protected]
[email protected]

./mail.txt

You can use another file by passing the -b flag (e. g. gomail -b hello.txt)

Hello friends,

I sent this mail to you using gomail.

Have a nice day :)

FAQ

Can I trust you that you aren't going to steal my password?

  • Although I never would even try to do something like that, you can't. But you can read through the code and compile it yourself, so you don't have to trust anyone :)

About

Send emails via SMTP

Topics

e-mailemailgogolangmailside-projectsmtpsmtp-client

Resources

Readme
AGPL-3.0 license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.