Rails template handler for multipart emails