title: Ruby Large HTML emails getting error, limit to header size
body: <pre><code>def mailTo(subject,msg,folks)
  begin
  Net::SMTP.start('localhost', 25) do |smtp|
    smtp.send_message "MIME-Version: 1.0\nContent-type: text/html\nSubject: #{subject}\n#{msg}\n#{DateTime.now}\n", 'person@domain.com', folks
  end
  
  
  rescue =&gt; e
      puts "Emailing Sending Error - #{e}"
    end
  end
  </code></pre>
  
  <p>when the HTML is VERY large I get this exception</p>
  
  <p>Emailing Sending Error - 552 5.6.0 Headers too large (32768 max)</p>
  
  <p>how can i get a larger html above max to work with Net::SMTP in Ruby</p>