From b8a02299fdb2ea00536f8997db161da412e1284c Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 14 Mar 2013 21:40:32 +0400 Subject: [PATCH] #22: uname should be in unquotes --- app/mailers/user_mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index d62c734f9..7c4c79f0a 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,7 +1,7 @@ # -*- encoding : utf-8 -*- class UserMailer < ActionMailer::Base - default :from => "#{APP_CONFIG['project_name']} <#{APP_CONFIG['do-not-reply-email']}>" + default :from => "\"#{APP_CONFIG['project_name']}\" <#{APP_CONFIG['do-not-reply-email']}>" default_url_options.merge!(:protocol => 'https') if APP_CONFIG['mailer_https_url'] include Resque::Mailer # send email async @@ -82,7 +82,7 @@ class UserMailer < ActionMailer::Base protected def email_with_name(user, email = APP_CONFIG['do-not-reply-email']) - "#{user.user_appeal} <#{email}>" + "\"#{user.user_appeal}\" <#{email}>" end def subject_for_issue(issue, new_issue = false)