Class: ShareMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/share_mailer.rb

Instance Method Summary collapse

Instance Method Details

#share_email(user, email, subject, message) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/mailers/share_mailer.rb', line 3

def share_email(user, email, subject, message)
  @message = message
  @user = user
  mail(:to => email, :from => user.email, :subject => subject) do |format|
    format.html
    format.text
  end
end