top of page

Manisha 

Bhandari

SecureBank Monthly Newsletter Header.png

SecureBank – Personalized Dynamic Email Newsletter

A personalized monthly financial newsletter developed in Salesforce Marketing Cloud, using HTML and AMPscript to dynamically display relevant financial articles based on customer preferences.

Description

A dynamic email newsletter developed for SecureBank, a fictional financial institution offering home loans, credit cards, investment products, and term deposits.

​

The project uses Salesforce Marketing Cloud and AMPscript to retrieve customer-specific articles, descriptions, images, and links from a Data Extension, allowing marketers to update newsletter content without rebuilding the email each month.

Scenario

SecureBank wants to provide customers with relevant financial information based on their interests while reducing the manual effort required to maintain monthly newsletters.

​

Rather than creating separate emails for different customer segments, the campaign uses one reusable template that dynamically retrieves content based on each customer's preference category.

​

The newsletter is intended to be sent on the 7th of each month, encouraging customers to explore financial products and services and visit the website for further information or consultations.

​

Five preference categories are supported:

​

  • Home Loans

  • Credit Cards

  • Long Term Investment

  • Short Term Investment

  • Term Deposits

Requirements

Personalization
  • Personalize the email subject line and greeting using the customer's first name.

  • Clean and capitalize customer names using Trim() and ProperCase().

  • Display a fallback greeting and subject line when the first name is missing.

  • Dynamically include the current month in the email subject line.

  • Retrieve newsletter content based on the customer's PreferenceCategory.

Conditional Messaging
  • Display different introductory messages for the five financial preference categories.

  • Use conditional statements to select the appropriate category-specific messaging.

  • Validate whether matching newsletter content exists before displaying articles.

  • Cancel the email for customers without a matching content record using RaiseError().

Data Transformation
  • Format customer names using Trim() and ProperCase().

  • Retrieve the current month dynamically using FormatDate() and Now().

  • Use RowCount() to validate matching records.

  • Extract individual article fields using Row() and Field().

Dynamic Content
  • Retrieve relevant newsletter content from the Newsletter_Content_Data Data Extension.

  • Dynamically display three articles based on the customer's financial preference.

  • Insert article titles, descriptions, image URLs, and links.

  • Use RedirectTo() for dynamic article links.

  • Allow marketers to replace monthly newsletter content through Data Extension updates.

AMPscript Features
  • Personalization

  • Conditional Messaging (IF, ELSEIF, ELSE, ENDIF)

  • Name Formatting (Trim(), ProperCase())

  • Dynamic Date Formatting (Now(), FormatDate())

  • Data Extension Lookups (LookupRows())

  • Row Validation (RowCount())

  • Row and Field Retrieval (Row(), Field())

  • Dynamic Content and Images

  • Dynamic Link Handling (RedirectTo())

  • Error Handling (RaiseError())

Project Walkthrough

Data Extensions

Two Data Extensions support the newsletter by storing customer preferences and the corresponding financial content for each category.

Add paragraph text. Click “Edit Text” to update the font, size and more. To change and reuse text themes, go to Site Styles.

1. Newsletter_Audience

Stores customer contact information and their financial interest category, which determines the newsletter content they receive.

Screenshot 2026-11-24 at 4.07.42 PM.png

2. Newsletter_Content_Data

Stores the monthly newsletter content for each financial category, including three article titles, descriptions, image URLs, and links.

Marketers can update the content in this Data Extension each month without changing the email's AMPscript logic.

Screenshot 2026-11-24 at 4.08.09 PM.png

The PreferenceCategory field in Newsletter_Audience is matched with the Category field in Newsletter_Content_Data to retrieve the appropriate newsletter content.

Email Template and Result

Dynamic Monthly Newsletter

Timing:  7th day of each month (planned campaign schedule)

​

The newsletter delivers three relevant financial articles based on the customer's selected interest category.

​

The personalized content includes:

​

  • Customer's first name and a dynamic monthly subject line.

  • Category-specific introductory messaging.

  • Three relevant financial articles with titles and descriptions.

  • Dynamic article images and links.

  • Fallback handling for missing customer names.

  • Error handling when matching content is unavailable.

​

Preview and Test

Screenshot 2026-11-24 at 4.21.36 PM.png

Result: The email previews demonstrate how a single AMPscript-powered newsletter template can retrieve different article titles, descriptions, and links based on customer preferences.

​

Dynamic subject lines, name formatting, fallback handling, and category-specific messaging were demonstrated across the sample customer records.

​

The project also shows how marketers can manage recurring newsletter content through Data Extensions instead of manually updating separate email templates.

Have a campaign, role, or idea in mind?

I’d love to hear from you.

bottom of page