maildefinition

Why does the MailDefinition class require a System.Web.UI.Control?

When creating a MailMessage object by calling the "CreateMailMessage" method on the MailDefinition class, the third parameter is an object of type System.Web.UI.Control. MailDefinition mail = new MailDefinition(); ListDictionary replacements = new ListDictionary(); replacements.Add("<%myname%>", "John"); mail.BodyFileName = "~/App_Dat...

Is it possible to have 'sub-templates' when using MailDefinition

I am using the MailDefinition class to create html emails for my site. The only problem I am having is that there is alot of repetition in the string templates. For example the email footer along with all the associated html and css has to be repeated in each template type. Is there a way to have sub-template? or some mechanism for avoid...