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.8.4 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.8.4 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.8.2 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.8.2 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.8.1 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.8.1 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.8.0 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.8.0 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.13 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.13 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.7.12 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.7.12 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.11 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.7.11 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.10 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.7.10 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.9 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.7.9 spec/rails3_mongoid/app/mailers/sorcery_mailer.rb
sorcery-0.7.8 spec/rails3_mongo_mapper/app/mailers/sorcery_mailer.rb
sorcery-0.7.8 spec/rails3/app/mailers/sorcery_mailer.rb