Advertisement
Guest User

Untitled

a guest
Oct 10th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. class UserMailer < ApplicationMailer
  2. def welcome_email(user, company)
  3. @user = user
  4. @url = user_url(@user)
  5. delivery_options = { user_name: company.smtp_user,
  6. password: company.smtp_password,
  7. address: company.smtp_host }
  8. mail(to: @user.email,
  9. subject: "Please see the Terms and Conditions attached",
  10. delivery_method_options: delivery_options)
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement