lib/taskjuggler/SheetHandlerBase.rb in taskjuggler-3.7.1 vs lib/taskjuggler/SheetHandlerBase.rb in taskjuggler-3.7.2
- old
+ new
@@ -164,14 +164,15 @@
def sendEmail(to, subject, message, attachment = nil, from = nil,
inReplyTo = nil)
case @emailDeliveryMethod
when 'smtp'
- Mail.defaults do
- delivery_method :smtp, {
+ settings_dto = {
:address => @smtpServer,
- :port => 25
- }
+ :port => 25,
+ }
+ Mail.defaults do
+ delivery_method :smtp, settings_dto
end
when 'sendmail'
Mail.defaults do
delivery_method :sendmail
end