Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BetaSignupMailer < ActionMailer::Base
- default :from => "no-reply@test.com"
- def send_invite(beta_signup)
- @beta_signup = beta_signup
- mail_options = {
- :to => @beta_signup.email,
- :bcc => 'api@test.com',
- :subject => "Welcome to the Beta program"
- }
- #attachments.inline['logo.png'] = File.read(Rails.root + 'public/images/logo.png')
- mail(mail_options) do |format|
- format.text
- format.html { render :layout => 'email' }
- end
- end
- end
Add Comment
Please, Sign In to add comment