Sha256: f1c8e4df0685a5e7ecaa6c546692c480a80fce631c435e45a62f7ce2b530d894
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ class UserMailer < ActionMailer::Base def password_reset_instructions(user) @edit_password_url = edit_password_url(user.perishable_token) mail :subject => "Fat Free CRM: " + I18n.t(:password_reset_instruction), :to => user.email, :from => from_address, :date => Time.now end def assigned_entity_notification(entity, assigner) @entity_url = url_for(entity) @entity_name = entity.name @entity_type = entity.class.name @assigner_name = assigner.name mail :subject => "Fat Free CRM: You have been assigned #{@entity_name} #{@entity_type}", :to => entity.assignee.email, :from => from_address end private def from_address from = Setting.smtp[:from] !from.blank? ? from : "Fat Free CRM <noreply@fatfreecrm.com>" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.13.4 | app/mailers/user_mailer.rb |
fat_free_crm-0.13.3 | app/mailers/user_mailer.rb |