#
swilliam
Dear All
Would it be a good idea to add a property IsHtml to Cuyahoga.Core.Service.Email.SmtpNet2EmailSender ? From scanning the source code, it looks like it can only send plain text emails.
IEmailTemplateEngine is interesting, too. I have a similar interface that takes a different approach:
string GetTemplateText(string templateName, Hashtable data);
I only use a template for the body text as subject text is generally trivial (I'll generally get the text from the resource files and do a String.Format() supplying the properties in {0}, {1} etc). I pass in data as a Hashtable to make the templates more flexible. I have one template engine that uses NVelocity (ships with Castle) and one that uses XSLT. If you have complex data, passing string values doesn't work very well.
Many thanks
Simon
Would it be a good idea to add a property IsHtml to Cuyahoga.Core.Service.Email.SmtpNet2EmailSender ? From scanning the source code, it looks like it can only send plain text emails.
IEmailTemplateEngine is interesting, too. I have a similar interface that takes a different approach:
string GetTemplateText(string templateName, Hashtable data);
I only use a template for the body text as subject text is generally trivial (I'll generally get the text from the resource files and do a String.Format() supplying the properties in {0}, {1} etc). I pass in data as a Hashtable to make the templates more flexible. I have one template engine that uses NVelocity (ships with Castle) and one that uses XSLT. If you have complex data, passing string values doesn't work very well.
Many thanks
Simon