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

generate_message is not supported #48

Open terenced opened 11 years ago

terenced commented 11 years ago

I followed the example found in the wiki 5) Create new emails!

email = gmail.generate_message do
  to "email@example.com"
  subject "Having fun in Puerto Rico!"
  body "Spent the day on the road..."
end

but I get the following error: undefined method `generate_message' for #Gmail::Client::Plain:0x007f94813a5fa8 (NoMethodError)

Ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0] Mac OS X 10.7.5

matsubo commented 10 years ago

+1

myobie commented 10 years ago

The method does exist. Can you give me a longer code example?

MaxRumpf commented 9 years ago

I get that error too.

MaxRumpf commented 9 years ago

Does it have any Dependency else than "gmail" ?