Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using .net MVC and currently I am working on a component that sends email to specific users. I have created the email functionality and I am able to send emails. But now , I am thinking to use a template sort of thing to make it better.

**my idea -**

There will be a file(in xml or text or anything) that will contain a specific template for an email structure as following -

Subject: Welcome User "user (Passed from database)"

Dear "UserName(Passed from database)",

Welcome to the system.
--more lines----
--more lines----------

Regards,

Admin


How can I achieve this using an external file. Suppose a config file or an xml or a text file. Any concept is welcome.

Thank you..

What I have tried:

I have created the email functionality and I am able to send emails.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900