Guest User

Untitled

a guest
Mar 10th, 2018
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ## config/mail.yml [plain]
  2. method: smtp
  3. address: smtp.domain.com
  4. username: user
  5. password: pass
  6.  
  7. ## app/mails/example.rb
  8. # module SampleApp::Mails #=> Only if NOT using boot.rb
  9. class Notifier < Base
  10. def signup_notification(recipient)
  11. recipients recipient.email_address_with_name
  12. from "system@example.com"
  13. subject "New account information"
  14. body :account => recipient
  15. end
  16. end
  17. # end #=> Only if NOT using boot.rb
Add Comment
Please, Sign In to add comment