Handle character encodings in single part emails correctly
This commit is contained in:
parent
eb8efa0a4b
commit
b91072bed4
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ mail = Mail.new(STDIN.readlines.join)
|
||||||
if mail.multipart?
|
if mail.multipart?
|
||||||
body = mail.html_part || mail.text_part
|
body = mail.html_part || mail.text_part
|
||||||
else
|
else
|
||||||
body = mail.body
|
body = mail
|
||||||
end
|
end
|
||||||
|
|
||||||
message = Message.new(:sender => from, :recipient => to,
|
message = Message.new(:sender => from, :recipient => to,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue