Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Commit

Permalink
Fix bugs with fake_file mailer conf
Browse files Browse the repository at this point in the history
  • Loading branch information
cn committed Nov 11, 2011
1 parent fb3863f commit 309d1a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wcc/mail.rb
Expand Up @@ -84,9 +84,10 @@ def self.parse_conf(conf)
:smtp_port => conf['smtp']['port'] || 25
}
elsif conf['fake_file'].is_a?(Hash)
from_mail = MailAddress.new(conf['fake_file']['from'] || "#{Etc.getlogin}@localhost")
return {
:mailer => 'fake_file',
:from_mail => conf['fake_file']['from'] || "#{Etc.getlogin}@localhost"
:from_mail => from_mail
}
end
end
Expand Down

0 comments on commit 309d1a6

Please sign in to comment.