Using the API to create an email
What is the best way to programmatically create an email using an existing template and new content? For example, I have a template called "Marketing" which I can retrieve using the "Get Email Template by Id" call. I would like to create a form which would be hosted on our Intranet which allows different groups to enter text and create their own message and save it (i.e., group1-june, group2-june, etc.) it to Marketo. Essentially I want to merge department specific content with my approved template using the API.
Many thanks!