I agree that we can take the send function refactor into the composer patch . These tasks are highly related and it would be convenient to refine the whole sms/mms composing / sending flow all at once. Here I only demonstrate how to generate smil and attachment for mms sending api.