Sha256: 95d2de96a9427e6ea63bf6e4c57294b0a3112cb126deddc4c1caee52dc5d950b

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

class Mailer < ActionMailer::Base
  default :from => 'no-reply@sendgrid.com',
          :subject => 'Test email'

  def email_with_multiple_recipients(recipients)
    mail :to => recipients, :body => "Hello!"
  end

  def email_open_tracking(opentrack_enabled = true)
    open_tracking opentrack_enabled
    mail :to => 'email@email.com', :body => 'Hello!'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sendgrid-rails-2.0.3 spec/fixtures/mailers/mailer.rb
sendgrid-rails-2.0.2 spec/fixtures/mailers/mailer.rb
sendgrid-rails-2.0.1 spec/fixtures/mailers/mailer.rb
sendgrid-rails-2.0 spec/fixtures/mailers/mailer.rb