Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserMailer < ApplicationMailer
- def welcome_email(user, company)
- @user = user
- @url = user_url(@user)
- delivery_options = { user_name: company.smtp_user,
- password: company.smtp_password,
- address: company.smtp_host }
- mail(to: @user.email,
- subject: "Please see the Terms and Conditions attached",
- delivery_method_options: delivery_options)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement