Move plugins to separate directory.
This commit is contained in:
parent
6e990fed4c
commit
6aa8ee7968
59 changed files with 4 additions and 4 deletions
11
plugins/messages/app/mailers/messages_mailer.rb
Normal file
11
plugins/messages/app/mailers/messages_mailer.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class MessagesMailer < Mailer
|
||||
# Sends an email copy of the given internal foodsoft message.
|
||||
def foodsoft_message(message, recipient)
|
||||
set_foodcoop_scope
|
||||
@message = message
|
||||
|
||||
mail subject: "[#{FoodsoftConfig[:name]}] " + message.subject,
|
||||
to: recipient.email,
|
||||
from: "#{show_user(message.sender)} <#{message.sender.email}>"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue