dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
792 stars 123 forks source link

html_part example error #33

Closed svs closed 11 years ago

svs commented 13 years ago

I had to add

content_type 'text/html; charset=UTF-8'

before the

   body "<p>Hello world</p>"

as in the README here: https://github.com/mikel/mail

Without that, it wouldn't recognise the html-ness of my email. Perhaps you could update the readme?

cheers

christiangenco commented 12 years ago

Thank you for this! Was banging my head against the wall trying to figure out what was wrong.

melchoir55 commented 11 years ago

I spend a good 2 hours on this annoying problem. Really wish someone would update the readme!

Thanks OP!

myobie commented 11 years ago

Is this still an issue with version 0.3.0 (or master)?

mpz commented 11 years ago

some example:

html_part do
  content_type 'text/html; charset=UTF-8'
  body "<h1'>hello</h1>"
end
myobie commented 11 years ago

I've updated the readme, thank you for this.