lib/backup/notifier/mail.rb in backup-4.2.3 vs lib/backup/notifier/mail.rb in backup-4.3.0
- old
+ new
@@ -213,14 +213,11 @@
@mail_folder ||= File.join(Config.root_path, 'emails')
{ :location => File.expand_path(@mail_folder) }
when 'test' then {}
end
- ::Mail.defaults do
- delivery_method method.to_sym, options
- end
-
email = ::Mail.new
+ email.delivery_method method.to_sym, options
email.to = to
email.from = from
email.cc = cc
email.bcc = bcc
email.reply_to = reply_to