On envoie maintenant les mails liés aux evts à l'adresse du soumetteur et non du contact

This commit is contained in:
echarp 2014-07-20 23:01:01 +02:00
parent 91c952b42d
commit 4081c4595f

View File

@ -3,7 +3,7 @@ class EventMailer < ActionMailer::Base
@event = event @event = event
mail 'Message-ID' => "<event-#{event.id}@#{ActionMailer::Base.default_url_options[:host]}>", mail 'Message-ID' => "<event-#{event.id}@#{ActionMailer::Base.default_url_options[:host]}>",
to: event.contact, to: event.submitter,
subject: t('event_mailer.create.subject', subject: event.title) subject: t('event_mailer.create.subject', subject: event.title)
end end
@ -12,7 +12,7 @@ class EventMailer < ActionMailer::Base
@current_user = current_user @current_user = current_user
mail 'In-Reply-To' => "<event-#{event.id}@#{ActionMailer::Base.default_url_options[:host]}>", mail 'In-Reply-To' => "<event-#{event.id}@#{ActionMailer::Base.default_url_options[:host]}>",
to: event.contact, to: event.submitter,
subject: t('event_mailer.accept.subject', subject: event.title) subject: t('event_mailer.accept.subject', subject: event.title)
end end
@ -22,7 +22,7 @@ class EventMailer < ActionMailer::Base
@reason = reason @reason = reason
mail 'In-Reply-To' => "<event-#{event.id}@#{ActionMailer::Base.default_url_options[:host]}>", mail 'In-Reply-To' => "<event-#{event.id}@#{ActionMailer::Base.default_url_options[:host]}>",
to: event.contact, to: event.submitter,
subject: t('event_mailer.destroy.subject', subject: event.title) subject: t('event_mailer.destroy.subject', subject: event.title)
end end
end end