How Can I customization message before send mail in C#?
I want to break line in somewhere in text, or set specific font in message.
Can anyone help me?
pice of code:
SEPNA.BLL.Mail mail = new BLL.Mail();
RichTextBox rtb = new RichTextBox();
Font boldfont = new Font("B Nazanin", 14, FontStyle.Bold);
rtb.RightToLeft = RightToLeft.Yes;
rtb.Font = boldfont;
SEPNA.DAL.DBMLs.COM_TbUser user = new SEPNA.DAL.Implementation.UsersDAL().GetUserByUserID(DisplayID);
if (mailType == Types.WorkFlowMail.Mail)
{
switch (step)
{
case SEPNA.Types.FlowStep.PackageUpload:
rtb.Text = MessageBody.Replace("[DisplayName]", user.DisplayName).Replace("[ApplicationName]", AppName).Replace("[ActivityID]", activity).Replace("\n", new StringBuilder().AppendLine().ToString());
Subject = Subject.Replace("[ApplicationName]", AppName);
break;
Regards!