Skip to content

Instantly share code, notes, and snippets.

@rafaelsales
Created June 11, 2014 12:44
Show Gist options
  • Save rafaelsales/b017984381ad7a666c96 to your computer and use it in GitHub Desktop.
Save rafaelsales/b017984381ad7a666c96 to your computer and use it in GitHub Desktop.
Rails send email
ActionMailer::Base.mail(to: "your_email@provider.com", from: "from@provider.com", subject: "Test", body: "Test", ).deliver!
$ telnet localhost 25
ehlo localhost
mail from: root@localhost
rcpt to: your_email@provider.com
data
Subject: My first mail on Postfix
Hi,
Are you there?
regards,
Admin
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment