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

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed May 15, 2013
1 parent 3e098e5 commit 9e40caf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/multi_mail/postmark/receiver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ def transform(params)
headers[header['Name']] = header['Value']
end

# Due to scoping issues, we can't call `address` within `Mail.new`.
# Due to scoping issues, we can't call `transform_address` within `Mail.new`.
from = transform_address(params['FromFull'])
to = params['ToFull'].map{|hash| transform_address(hash)}
cc = params['CcFull'].map{|hash| transform_address(hash)}

message = Mail.new do
headers headers

from from
to to
cc cc
Expand All @@ -32,8 +34,6 @@ def transform(params)
body CGI.unescapeHTML(params['HtmlBody'])
end

headers headers

params['Attachments'].each do |attachment|
add_file(:filename => attachment['Name'], :content => Base64.decode64(attachment['Content']))
end
Expand Down

0 comments on commit 9e40caf

Please sign in to comment.