MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the mobile/cellphone carriers. MMS messages are multipart email and the carriers often inject branding into these messages. Use MMS2R if you want to easily get at the real user generated content in a MMS without having to deal with the extra content added by the carriers.
Branding is explicitly removed from the following carriers. Contact the author to add support for additional carriers not listed below.
If MMS2R is not aware of a particular carrier no extra processing is done to the MMS other than decoding and consolidating its media.
Greedy (default) or lazy processing of MMS
Supports representing content as CGI.rb temp file objects for AttachmentFu integration
Access content through media Hash attribute or through block on #process
As simple as:
require 'mms2r' mms = MMS2R::Media.new(email) file = mms.default_mediaand later when the application is done with the temporary files produced by mms2r
mms.purge
MMS2R project page mms2r.
In depth coding examples listed in the MMS2R API documentation.
Simple:
gem install mms2r
"MMS2R saved me two weeks worth of work I would have had to do on my own"
"Thanks for creating MMS2R! It made integrating our Rails app with mobile messages simple and saved us a lot of time -- and kept our client happy."
"assert mms2r.not.suck == true"
Layton Wedgeworth:
"MMS2R has been a lifesaver and I will forever be in it's deb"
Luke Francl (Slantwise Design, USA) Announcing FanChatter: mobile sports chat
Luke Francl (Slantwise Design, USA) Rails and Mobil World @ Ostrava On Rails
Luke Francl (Slantwise Design, USA) Using MMS2R for mobile integration with Rails