Created
June 11, 2014 12:44
-
-
Save rafaelsales/b017984381ad7a666c96 to your computer and use it in GitHub Desktop.
Rails send email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionMailer::Base.mail(to: "[email protected]", from: "[email protected]", subject: "Test", body: "Test", ).deliver! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ telnet localhost 25 | |
ehlo localhost | |
mail from: root@localhost | |
rcpt to: [email protected] | |
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