Sha256: c97156e2c58cd8cdedca406325de7e3afadb3d4b55aae7522b9b4d31eb70316f

Contents?: true

Size: 637 Bytes

Versions: 93

Compression:

Stored size: 637 Bytes

Contents

class SorceryMailer < ActionMailer::Base
  
  default :from => "notifications@example.com"
  
  def activation_needed_email(user)
    @user = user
    @url  = "http://example.com/login"
    mail(:to => user.email,
         :subject => "Welcome to My Awesome Site")
  end
  
  def activation_success_email(user)
    @user = user
    @url  = "http://example.com/login"
    mail(:to => user.email,
         :subject => "Your account is now activated")
  end
  
  def reset_password_email(user)
    @user = user
    @url  = "http://example.com/login"
    mail(:to => user.email,
         :subject => "Your password has been reset")
  end
end

Version data entries

93 entries across 38 versions & 1 rubygems

Version Path
sorcery-0.7.1 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.1 spec/rails3/app/mailers/sorcery_mailer.rb
sorcery-0.7.0 spec/rails3/app/mailers/sorcery_mailer.rb
sorcery-0.7.0 spec/sinatra/sorcery_mailer.rb
sorcery-0.7.0 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.0 spec/sinatra_modular/sorcery_mailer.rb
sorcery-0.6.1 spec/sinatra_modular/sorcery_mailer.rb
sorcery-0.6.1 spec/rails3/app/mailers/sorcery_mailer.rb
sorcery-0.6.1 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.6.1 spec/sinatra/sorcery_mailer.rb
sorcery-0.6.0 spec/rails3/app/mailers/sorcery_mailer.rb
sorcery-0.6.0 spec/sinatra_modular/sorcery_mailer.rb
sorcery-0.6.0 spec/sinatra/sorcery_mailer.rb
sorcery-0.6.0 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.5.30 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.5.30 spec/sinatra_modular/sorcery_mailer.rb
sorcery-0.5.30 spec/sinatra/sorcery_mailer.rb
sorcery-0.5.30 spec/rails3/app/mailers/sorcery_mailer.rb
sorcery-0.5.3 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.5.3 spec/sinatra_modular/sorcery_mailer.rb