In my Asp.net Website I create New users and what I have to do is send email to the user from the website with their Login details. I created a webservices to send email and it works fine. I want to add some HTML stylings to the Email I send to the user.
So I have created a HTML email format and have saved it as a HTML page in a folder(resource) Inside the Project. How can I read the HTML page from the resource folder and attach it with the below code in "BODY" argument and send it to the webservices method. And Also how can I edit the html file so that I will include the user login details to it before sending it to the webservice. Thanks
C# Code to pass value to the webservice method to send email
string subject = "login details";
//call the webservice to send email to the newly created user
ServiceClient service = new ServiceClient();
service.sendEmail(newuseremail, subject, BODY, message, myemail);