Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActionMailer::Base.delivery_method = :smtp
- ActionMailer::Base.smtp_settings = {
- :address => "mail.foo.com",
- :port => 25,
- :domain => "foo.com",
- :authentication => :email,
- :user_name => "no-reply@foo.com",
- :password => "foo1234567"
- }
- class Notifications < ActionMailer::Base
- def answered_question(faq)
- subject 'Your question has been answered'
- recipients faq.email
- from 'Foo <no-reply@foo.com>'
- sent_on Time.now
- content_type "text/html"
- body :faq => faq
- end
- def completed_order(order)
- subject 'Your order has been completed'
- recipients order.email
- from 'Foo <registrations@foo.com>'
- sent_on Time.now
- content_type "text/html"
- body :order => order
- end
- end
Add Comment
Please, Sign In to add comment