login about faq

Hi there

Is is possible to incorporate a mailmerge field into the chilkat email software. All i want to be able to do is incorporate a couple of merge fields so the email reads Dear FIRST_name in the email body etc.

Kind regards


asked Apr 30 '14 at 14:52

robbiev's gravatar image


I'm not sure of what the appropriate answer is for your question. I can say how I would do it...

I would create an HTML template, which might be a file, but could also simply be a string literal found directly within your source code. The template would use a keyword, such as "FIRST_NAME" that would be replaced using ordinary string operators in your programming language.

For example (in pseudo-code)

    string htmlTemplate = "<html><body>

Hello FIRST_NAME,<br></p><p>Thank you for ...</p> ..... </body></html>";

Then you would do your string substitutions (using whatever syntax or functionality is available in your programming language).

    string actualHtml = htmlTemplate.Replace("FIRST_NAME","Matt");
And then you would set the HTML body of the email using the actual HTML:


answered May 04 '14 at 19:17

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Apr 30 '14 at 14:52

Seen: 814 times

Last updated: May 04 '14 at 19:17

powered by OSQA