33 lines
828 B
Ruby
33 lines
828 B
Ruby
class ForumMails < ActionMailer::Base
|
|
layout 'mail'
|
|
|
|
default from: "Le Pic Vert <contact@lepicvert.asso.fr>"
|
|
|
|
def reset_password(forum_user, options = {})
|
|
@forum_user = forum_user
|
|
@options = options
|
|
mail(:to => forum_user.email, :subject => "Réinitialisation de votre mot de passe.")
|
|
end
|
|
|
|
|
|
def topic_notification(forum_topic, forum_user, options = {})
|
|
@forum_user = forum_user
|
|
@forum_topic = forum_topic
|
|
@options = options
|
|
mail(:to => forum_user.email, :subject => "Forum Pic Vert - Nouveau fil de discussion")
|
|
|
|
end
|
|
|
|
def message_notification(forum_message, forum_user, options = {})
|
|
@forum_user = forum_user
|
|
@forum_message = forum_message
|
|
@options = options
|
|
mail(:to => forum_user.email, :subject => "Forum Pic Vert - Nouveau message")
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|