Method: Mail::Message#html_part

Defined in:
lib/mail/message.rb

#html_part(&block) ⇒ Object

Accessor for html_part


1635
1636
1637
1638
1639
1640
1641
# File 'lib/mail/message.rb', line 1635

def html_part(&block)
  if block_given?
    self.html_part = Mail::Part.new(:content_type => 'text/html', &block)
  else
    @html_part || find_first_mime_type('text/html')
  end
end