34 lines
832 B
Ruby
34 lines
832 B
Ruby
class EbookMailer < ActionMailer::Base
|
|
layout 'mail'
|
|
default from: "contact@lepicvert.asso.fr"
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.question.deliver.subject
|
|
#
|
|
def confirm(mailto, link)
|
|
@mailto = mailto
|
|
@link = link
|
|
|
|
mail to: @mailto,:reply_to => "contact@lepicvert.asso.fr", :subject => "Observer et photographier la faune sans déranger"
|
|
end
|
|
|
|
def resend(mailto, link)
|
|
@mailto = mailto
|
|
@link = link
|
|
|
|
mail to: @mailto,:reply_to => "contact@lepicvert.asso.fr", :subject => "Observer et photographier la faune sans déranger"
|
|
end
|
|
|
|
|
|
|
|
def reset_password(user, options = {})
|
|
@user = user
|
|
@options = options
|
|
mail(:to => user.email, :subject => "Réinitialisation de votre mot de passe.")
|
|
end
|
|
|
|
|
|
end
|