4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'app/mailers/space_mailer.rb', line 4
def send_private_email(from, to, space, content, subject)
@content = content
@from = from
@space = space
@to = to
subject ||= "New message from space #{@space.title}"
metadata['user-id-from'] = @from.id
metadata['user-id-to'] = @to.id
mail(
to: "#{@to.full_name} <#{@to.email}>",
from: "JOGL - Just One Giant Lab <notifications@#{Rails.configuration.email}>",
subject: subject,
tag: 'space-mass-email'
)
end
|