aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers/contact_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/contact_mailer.rb')
-rw-r--r--app/mailers/contact_mailer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mailers/contact_mailer.rb b/app/mailers/contact_mailer.rb
index 27e04ca4b..58e036d3b 100644
--- a/app/mailers/contact_mailer.rb
+++ b/app/mailers/contact_mailer.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# models/contact_mailer.rb:
# Sends contact form mails.
#
@@ -9,7 +10,7 @@ class ContactMailer < ApplicationMailer
def to_admin_message(name, email, subject, message, logged_in_user, last_request, last_body)
@message, @logged_in_user, @last_request, @last_body = message, logged_in_user, last_request, last_body
- mail(:from => "#{name} <#{email}>",
+ mail(:from => MailHandler.address_from_name_and_email(name, email),
:to => contact_from_name_and_email,
:subject => subject)
end