Error in MultipartEmail for ruby-gmail.0.0.8 #17

Closed
jackbit opened this Issue Apr 10, 2010 · 0 comments

Comments

Projects
None yet
2 participants
Collaborator

jackbit commented Apr 10, 2010

Hi Bro:

I got this error message when trying to get html message with this error :

undefined method find_parts' for "This is a multi-part message in MIME format.\r\n":String D:/ruby/lib/ruby/gems/1.8/gems/ruby-gmail-0.0.8/lib/mime/entity.rb:124:infind_parts'
D:/ruby/lib/ruby/gems/1.8/gems/ruby-gmail-0.0.8/lib/mime/entity.rb:123:in each' D:/ruby/lib/ruby/gems/1.8/gems/ruby-gmail-0.0.8/lib/mime/entity.rb:123:infind_parts'
D:/ruby/lib/ruby/gems/1.8/gems/ruby-gmail-0.0.8/lib/mime/entity.rb:112:in find_part' D:/ruby/lib/ruby/gems/1.8/gems/ruby-gmail-0.0.8/lib/mime/message.rb:37:inhtml'
D:/ruby/anton/Nebula/app/controllers/mails_controller.rb:21:in index' D:/ruby/anton/Nebula/app/controllers/mails_controller.rb:17:ineach'
D:/ruby/anton/Nebula/app/controllers/mails_controller.rb:17:in index' D:/ruby/lib/ruby/gems/1.8/gems/ruby-gmail-0.0.8/lib/gmail.rb:24:ininitialize'
D:/ruby/anton/Nebula/app/controllers/mails_controller.rb:15:in `new'

Thank you for any help
Jack

Here is my code:

user_email = Mail.create({ :subject => email.message.subject,
:message => email.message.html, #<--- Error here for multipart message
:sender => email.message.from,
:receiver => email.message.to,
:received_date => email.message.headers['date']
})

@ghost ghost assigned myobie Dec 19, 2012

@myobie myobie closed this Mar 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment