Processing Cellphone MMS Messages With Ruby

Posted by Mike Sun, 11 Feb 2007 20:34:00 GMT

Cellphone Multimedia Message Service (MMS) messages that your cellphone sends are really just email formatted text. You can send MMS to other cellphones or to a real email address. I wrote a post about using the Rails receive method in ActionMailer::Base to process email decoding email attachments with ActionMailer::Base receive If you just want to process the mail but don’t need the hook into Rails then just use the TMail class’s parse method directly

mail = TMail::Mail.parse(raw_email)

I’ve been processing MMS emails via TMail recently and have found the cellphone carriers often modify user generated content (text, videos, images) to include advertising for their services.

Posted in , , ,  | Tags , ,  | 3 comments | no trackbacks

Web Statistics