From 6a4351378b59ccce262f05a569eb07b16e5b1b70 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Sun, 5 Dec 2010 20:48:18 +0100 Subject: [PATCH] fixed bug in the mailer that caused a invalid To: header in the mail --- app/mailers/notifier.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/notifier.rb b/app/mailers/notifier.rb index b50155c4f..525feb412 100644 --- a/app/mailers/notifier.rb +++ b/app/mailers/notifier.rb @@ -29,7 +29,7 @@ class Notifier < ActionMailer::Base attachments.inline['diaspora_white_on_grey.png'] = ATTACHMENT - mail(:to => "#{@receiver.name} <#{@receiver.email}>", + mail(:to => "\"#{@receiver.name}\" <#{@receiver.email}>", :subject => I18n.t('notifier.new_request.subject', :from => @sender.name), :host => APP_CONFIG[:terse_pod_url]) end @@ -42,7 +42,7 @@ class Notifier < ActionMailer::Base attachments.inline['diaspora_white_on_grey.png'] = ATTACHMENT - mail(:to => "#{@receiver.name} <#{@receiver.email}>", + mail(:to => "\"#{@receiver.name}\" <#{@receiver.email}>", :subject => I18n.t('notifier.request_accepted.subject', :name => @sender.name), :host => APP_CONFIG[:terse_pod_url]) end