Module: ActionMailer::PartContainer
- Defined in:
- lib/inline_attachment.rb
Instance Method Summary collapse
-
#inline_attachment(params, &block) ⇒ Object
Add an inline attachment to a multipart message.
Instance Method Details
#inline_attachment(params, &block) ⇒ Object
Add an inline attachment to a multipart message.
4 5 6 7 8 9 10 11 |
# File 'lib/inline_attachment.rb', line 4 def (params, &block) params = { :content_type => params } if String === params params = { :disposition => "inline", :transfer_encoding => "base64" }.merge(params) params[:headers] ||= {} params[:headers]['Content-ID'] = params[:cid] part(params, &block) end |