Created
March 23, 2017 05:46
-
-
Save 8parth/9dbe90d57a265404e0336c337b9e7795 to your computer and use it in GitHub Desktop.
user mailer in rails 4
This file contains hidden or 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
| class UserMailer < ApplicationMailer | |
| default from: "[email protected]" | |
| def welcome(email, name, message) | |
| @email = email | |
| @name = name | |
| @message = message | |
| mail to: @email, subject: "Welcome to Example." | |
| end | |
| def sign_up(email, name, message) | |
| @email = email | |
| @name = name | |
| @message = message | |
| mail to: @email, subject: "Confirm your email!" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment