Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9208453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:37:18+00:00 2026-06-18T00:37:18+00:00

My website has automatic email to users and there is some dynamic fields in

  • 0

My website has automatic email to users and there is some dynamic fields in email text. I mean, it automatically extract name family and prefix of each user and send it them.
for example:
dear prefix name family: ->
dear Dr John Smith:
you account is active.

Now i want to add the capability of editing this email context to admin part. The problem is some fields are dynamic. my code is like this:

 bodyMsg.Append( " Dear "+prefix+name+family+", thank you for accepting our request.Your username is your email and here is your Password :" + password);

As you see, name, family, prefix and password are dynamically change. Now admin needs to edit email context. He should do that from his control panel in a Rad Editor. For example change the place of name or family in email context.
What i need is when admin used key words such as prefix, name or family the system detect the dynamic fields. and the email edited with dynamic fields place.
can any body help me?
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:37:19+00:00Added an answer on June 18, 2026 at 12:37 am

    Last time I had to do something similar, I let them use predefined template-words in their text.

    "Dear {prefix} {name} {family}, thank you for accepting....". 
    

    Afterwards I replaced the template-words in the text with the values.

    EDIT

    We do this stuff with mailtemplates that needs to be sent by an app.
    The templates are created by someone and stored in the database.
    They’ve got documentation with a list of dynamic fields they can use in the mailtemplate, like in the example below: {ReplaceWithName}.
    In my app I’ll replace those dynamic fields with the appropriate data:

    Person person = GetPersonInfo(); //Gets the information of the person
    string body = GetBodyFromDatabase(); //Retreives the created mailtemplate
    body = body.Replace("{ReplaceWithName}", (person.Firstname + " " + person.Lastname)); //Do this for each dynamic field
    mailMessage.Body = body;
    

    This will of course put some responsibility to the user that creates those templates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My website has a sponsorship system that allows users to invite friends by email
There has been some talk of Website performance monitoring tools and services on stackoverflow,
The website has a list of thumbnails,containing people's name,ID,and photo,if click it will pop
I work for a company that has a website with about 700,000 users, it
my website has a log in by open id feature. When a user logs
Our website has one section which often changes to match the user. (examples are
My website has a setup whereby when the application starts a module called SiteContent
My website has a main image that changes depending on what thumbnails you click
My website has recently becoming slow now a days. The website is hosted on
A page within our MOSS publishing website has a property which is a lookup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.