asp.net mvc - ExactTarget - How to add dynamic user created content in an Email Template -


we have email being created in end code (c#) , sent through exacttarget api. want move template in exacttarget don't have maintain html written in stringbuilder() in c#. issue content of email determined user inputs. user fills out form of samples want email sent person fulfill order.

so example be:

<tr>     <td>product number</td>     <td>quantity</td> </tr> <tr>     <td>product number</td>     <td>quantity</td> </tr> 

the maximum number of samples can ordered 16. there way loop through content posted exacttarget create correct number of rows instead of hard coding 16 rows template , half of them being blank.

please let me know if need more specific anything

you try creating partial view below,

@model ienumerable<cartitems> <table> @foreach(var item in model) {     <tr>     <td>@item.number</td>     <td>@item.quantity</td>     <tr> } </table> 

call c# code suggested here. render view string


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -