Guest User

Untitled

a guest
May 23rd, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. class BetaSignupMailer < ActionMailer::Base
  2. default :from => "no-reply@test.com"
  3.  
  4. def send_invite(beta_signup)
  5. @beta_signup = beta_signup
  6.  
  7. mail_options = {
  8. :to => @beta_signup.email,
  9. :bcc => 'api@test.com',
  10. :subject => "Welcome to the Beta program"
  11. }
  12.  
  13. #attachments.inline['logo.png'] = File.read(Rails.root + 'public/images/logo.png')
  14.  
  15. mail(mail_options) do |format|
  16. format.text
  17. format.html { render :layout => 'email' }
  18. end
  19. end
  20. end
Add Comment
Please, Sign In to add comment