Note that there are some explanatory texts on larger screens.

plurals
  1. POFor Sending Html Template in mail, iterate Only Second table in html
    primarykey
    data
    text
    <p>I have used Html Template to send mail in this HTML Template i have used a table within a table to send mail Everything works Fine but i am getting html in this Format <img src="https://i.stack.imgur.com/QeeHT.png" alt="enter image description here"></p> <p>and how i Want is Like This <img src="https://i.stack.imgur.com/C3kWv.png" alt="enter image description here"></p> <p>My C# Code For Generating Html Mail is </p> <pre><code>var TemplatePath = userDetail.UserTypeTemplate.EmailTemplatePath; toEmail = userDetail.Email; fromEmail = ConfigurationManager.AppSettings["AdminMail"]; var sbMail = new StringBuilder(); sbMail.Replace("{Name}", userDetail.Name); sbMail.Replace("{CurrentDate}", currentDateTime.ToString("d")); foreach (var tender in userTenders) { using (var sReader = new StreamReader(TemplatePath)) { sbMail.Append(sReader.ReadToEnd()); sbMail.Replace("{TenderTitle}", tender.TenderTitle); sbMail.Replace("{TenderID}", tender.TenderID.ToString()); sbMail.Replace("{TenderType}", tender.TenderTypeName); sbMail.Replace("{TenderValue}", tender.TenderValue.ToString("₹ 0,0", InCulture)); sbMail.Replace("{TenderEMD}", tender.TenderEMD); sbMail.Replace("{Location}", tender.Location); sbMail.Replace("{OrgName}", tender.OrgName); sbMail.Replace("{LastDateForSubmission}", tender.LastDateForSubmission.ToString("d")); sbMail.Replace("{SubProductCatName}", tender.SubProductCatName); sbMail.Append("&lt;br /&gt;"); } } </code></pre> <p>the main Problem is when i am using .Replace with Name it's Starts Repeating Whole Table and When i am Using this .Replace method outside Foreach loop it's not reading the Name Can Someone Help Plz.... Thanks, Vishal</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload