Accessor for text_part
1651 1652 1653 1654 1655 1656 1657
# File 'lib/mail/message.rb', line 1651 def text_part(&block) if block_given? self.text_part = Mail::Part.new(:content_type => 'text/plain', &block) else @text_part || find_first_mime_type('text/plain') end end