Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## config/mail.yml [plain]
- method: smtp
- address: smtp.domain.com
- username: user
- password: pass
- ## app/mails/example.rb
- # module SampleApp::Mails #=> Only if NOT using boot.rb
- class Notifier < Base
- def signup_notification(recipient)
- recipients recipient.email_address_with_name
- from "system@example.com"
- subject "New account information"
- body :account => recipient
- end
- end
- # end #=> Only if NOT using boot.rb
Add Comment
Please, Sign In to add comment