Skip to content

Instantly share code, notes, and snippets.

@joshk
Created July 23, 2010 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshk/487282 to your computer and use it in GitHub Desktop.
Save joshk/487282 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment