Dynamically replacing 'Name' in Email - Newsletter

Hi All,

I have a HTML code, which contains ‘Dear Name’ in it… I want to dynamically replace the ‘Name’ with the actual names of the people to whom the mail is being sent, through Newsletter doctype.

  1. Created an Email Group and added just 2 subscribers for testing purpose.
  2. Created a field called Recipient Name in Email Group Member doctype, so that user can add the recipient’s name, which inturn needs to be replaced instead of ‘Name’ in the mail.

Kindly help me with achieving the desired functionality… Thanks in advance!