Send an email with a small task and quick!
Copy env-example.rb
to env.rb
and update
cp env-example.rb env.rb
# SMTP config
ENV["SETTINGS__SMTP__ADDRESS"] = "smtp_server"
ENV["SETTINGS__SMTP__HOST"] = "localhost"
ENV["SETTINGS__SMTP__USER_NAME"] = "username"
ENV["SETTINGS__SMTP__PASSWORD"] = "password"
ENV["SETTINGS__SMTP__FROM"] = "no-reply@localhost"
ENV["SETTINGS__SMTP__PORT"] = "587"
ENV["SUBJECT"] = "Welcome home"
Open body.txt
and add the content that you want to send to your receivers.
Open receivers.csv
and append the receiver email line by line.
- Go to
cd 'path/to/simple-mailer'
folder - Run
$ ruby mailer.rb