Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This changes attachment behavior when the message contains poorly formatted content. #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.6.1
8 changes: 6 additions & 2 deletions lib/mail_style/inline_styles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ def absolutize_url(url, base_path = '')
[host,protocol].each{|r| original_url.gsub!(r,"") }
host = protocol+host unless host[URI::regexp(%w[http https])]

url = URI.join host, base_path, original_url
begin
url = URI.join host, base_path, original_url
rescue => e
url = ''
end
end

url.to_s
Expand Down Expand Up @@ -208,4 +212,4 @@ def self.included(receiver)
end
end

ActionMailer::Base.send :include, MailStyle::InlineStyles
ActionMailer::Base.send :include, MailStyle::InlineStyles