diff options
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/environment.rb b/config/environment.rb index 426625102..62db9d0ae 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -103,7 +103,7 @@ module ActionMailer Net::SMTP.start(smtp_settings[:address], smtp_settings[:port], smtp_settings[:domain], smtp_settings[:user_name], smtp_settings[:password], smtp_settings[:authentication]) do |smtp| - smtp.sendmail(mail.encoded, mail.from, destinations) + smtp.sendmail(mail.encoded, sender, destinations) end end @@ -111,7 +111,7 @@ module ActionMailer sender = mail.sender(nil) || mail.from arguments = sendmail_settings[:arguments].dup - arguments += " -f#{sender}" + arguments += " -f \"#{sender}\"" IO.popen("#{sendmail_settings[:location]} #{arguments}","w+") do |sm| sm.print(mail.encoded.gsub(/\r/, '')) sm.flush |