ServicesSalesforce consultingArchitectureImplementationOrg health checkDevelopmentIntegrations and APIsData migrationTesting and QAManaged supportSpecialist supportMarketing Cloud auditDeliverability
SolutionsMarketing Cloud EngagementMarketing Cloud NextSalesforce + BrazeAccount EngagementData Cloud (Data 360)Identity resolutionInsights and segmentsAgentforce and AIMCP integrationsSales and Service CloudReal-time personalisationIntegration solutionsEnterprise AI integrationBy industry
ArchitectureSalesforce CRMData 360Salesforce + BrazeAgentforceCustomer 360API-led integrationEvent-drivenMCP host, client and serverIdentity and consentMCP securityData governanceCI/CD and releasesOur public MCP server
ResourcesEngineering journalDecision guidesSolution blueprintsSalesforce productsProjects and achievementsSales ROI calculatorWhere we workChecklists and templatesPlanning toolsReadiness assessmentGlossaryAbout GeekMidstOur approachOur expertiseContact
CompanyAbout GeekMidstOur approachDelivery methodologyTrust and evidenceProjectsAchievementsBook a consultationContactWhere we workSecurity and data
Book a Consultation

Marketing Cloud Email Development and Production

Email templates and production support for Marketing Cloud Engagement: modular, accessible, tested across clients and built so your team can assemble campaigns without breaking them.

Top-down view of hands arranging modular paper blocks into an email layout on a green cutting mat

Email production slows down when every campaign starts from a copied email full of hard-coded HTML. Small edits break layouts in some mail clients, personalisation fails silently when a field is empty, and nobody is sure which version of the footer is current. Marketing Cloud email development is about removing that friction: templates and content blocks that are built once, tested properly and reused safely.

GeekMidst builds and maintains email templates in Content Builder for Marketing Cloud Engagement, and can support ongoing production when your team needs extra capacity.

Who this is for

  • Marketing teams sending regular campaigns who want to build emails faster without involving a developer each time.
  • Teams moving from another email platform who need their templates rebuilt for Marketing Cloud.
  • CRM and lifecycle teams whose triggered and journey emails need reliable personalisation and fallbacks.
  • Brands whose emails need to meet accessibility expectations and render well in dark mode.
Email builder where a content block is dragged from a block palette into a modular email layout, with a mobile preview showing the same email

What we build

Modular templates

A template with locked structure and editable regions, plus a library of content blocks for headers, hero areas, product grids, text sections and footers.

Personalisation

AMPscript for greetings, dynamic sections, lookups from data extensions and safe fallbacks when data is missing.

→

Dynamic content

Rule-based dynamic content blocks for audience variations, so one email serves several segments without duplicate builds.

→

Testing and QA

Rendering checks across major clients and devices, link and tracking checks, test sends with sample data and accessibility review.

→

Production support

Building campaign emails from briefs and assets on an agreed schedule, using your template library and approval process.

Email production team reviewing designs on a monitor, tablet and phones

Personalisation that fails safely

Personalisation errors are one of the most common reasons an email goes out looking broken. Every dynamic value should have a fallback, and the template should be tested with records where fields are empty, very long or contain unusual characters. The short example below shows the pattern we use for a greeting.

ampscript
%%[
/* Assumes a sendable data extension with a FirstName field */
SET @firstName = AttributeValue("FirstName")

IF Empty(@firstName) THEN
  SET @greeting = "Hello"
ELSE
  SET @greeting = Concat("Hello ", ProperCase(@firstName))
ENDIF
]%%
<p style="margin:0 0 16px 0;">%%=v(@greeting)=%%,</p>
A greeting with a fallback. A sample pattern, not production code; adjust field names to your data.

AttributeValue returns an empty value rather than raising an error when the field does not exist in the sending context, which makes it safer than referencing the field directly in templates used across several data extensions. For deeper troubleshooting, see how to debug AMPscript personalisation errors.

What good email code looks like

  • Table-based layout where it matters. Some widely used desktop clients still need tables for reliable layout, so we use them with role="presentation" and keep the structure simple.
  • Accessibility built in. A lang attribute, meaningful alt text, real text instead of text in images, adequate contrast and a logical reading order.
  • Dark mode considered. Logos and images that work on dark backgrounds, and colours that do not invert into something unreadable.
  • Size kept in check. Gmail clips messages with large HTML, which can hide the footer and unsubscribe link, so we keep code lean and check the final size.
  • Consistent footers. A single shared footer block with the required sender details and unsubscribe link, so legal text changes in one place.

How a template project runs

  1. 01

    Inventory

    We review your current emails and designs and group them into the patterns the template must support.

  2. 02

    Design handover

    Your designer or agency supplies designs; we flag anything that will not render reliably in email before build starts.

  3. 03

    Build

    We code the template and content blocks, set up editable regions and add personalisation with fallbacks.

  4. 04

    Test

    Rendering, links, tracking parameters, personalisation with edge-case data, dark mode and accessibility are checked and issues fixed.

  5. 05

    Train and hand over

    Your team learns how to assemble emails from the library, and receives a short guide on what can and cannot be changed.

What you receive and what we need

You receiveWe need from you
TemplatesCoded templates in Content Builder with locked and editable areasApproved designs and brand guidelines
Content blocksA named, foldered library of reusable blocksExamples of typical campaigns
PersonalisationAMPscript and dynamic content with documented fallbacksField names and sample data in a sandbox or test business unit
QA recordRendering and accessibility checks for each templateAccess to your testing tool, if you use one
GuideHow to build an email from the libraryA named reviewer for approvals

Workflow diagram

Explore how the pieces fit together. Select a step to read what happens there.

Workflow

Send logging and troubleshooting

Open full size
Send logging and troubleshootingWhen a missing or wrong email is reported, the team queries the send log data extension. No row means the subscriber was excluded, so status and exclusions are checked. A row means the send happened, so the logged values are compared with source data to decide whether the data or the AMPscript needs fixing, then the fix is verified.Send logging and troubleshootingOps teamSend log DESubscriberrecordsYesNoDataCodeIssue reported: Missing or wrong email. A customer or colleague reports a missing email or wrong personalised content. Note the subscriber key, the email and the approximate send time.Issue reportedMissing or wrongemailQuery send log: By key and JobID. Send logging writes a row per subscriber per send with JobID, ListID, BatchID and any custom fields you add. A SQL query or filter finds the row.Query send logBy key and JobIDLogged at send time?. A row means the platform attempted the send to that subscriber. No row means they were excluded before sending, so the check moves to status and exclusions.Logged at sendtime?Check status: Unsubscribed, held, suppressed. Check the All Subscribers status, bounce history in the _Bounce data view, exclusion scripts and suppression lists. Most missing-email cases end here.Check statusUnsubscribed, held,suppressedCause found: Expected, or rule corrected. Either the exclusion was correct and is explained to the requester, or a wrong rule is corrected for future sends.Cause foundExpected, or rulecorrectedCompare values: Logged vs source. Custom send log fields capture AMPscript variables at send time. Comparing them with the source row shows whether the data or the code produced the wrong content.Compare valuesLogged vs sourceWrong data or code?. If the logged values match a wrong source record, the data is at fault. If the source was right but the output was wrong, the AMPscript logic is.Wrong data orcode?Fix source data: Then check sync or import. Correct the record at its source, not only in the data extension, or the next sync or import will bring the wrong value back.Fix source dataThen check sync orimportFix the AMPscript: Preview and test sends. Correct the logic, then preview as the affected subscriber and send tests. Handling empty values explicitly stops the same failure for others.Fix the AMPscriptPreview and testsendsFix verified: Resend only if appropriate. The fix is verified with a test send. Whether to resend depends on the message; a duplicate promotion can do more harm than the original error.Fix verifiedResend only ifappropriateStartProcess stepDecisionEnd or outcomeOriginal GeekMidst explanatory diagram, not an official Salesforce reference.

Select any step in the diagram, or use Step through, to see what happens at that point and why.

Text version: every step in order
  1. Issue reported Ops teamMissing or wrong email

    A customer or colleague reports a missing email or wrong personalised content. Note the subscriber key, the email and the approximate send time.

    Next: Query send log

  2. Query send log Send log DEBy key and JobID

    Send logging writes a row per subscriber per send with JobID, ListID, BatchID and any custom fields you add. A SQL query or filter finds the row.

    Next: Logged at send time?

  3. Logged at send time? Send log DE

    A row means the platform attempted the send to that subscriber. No row means they were excluded before sending, so the check moves to status and exclusions.

    Next: Yes: Compare values; No: Check status

  4. Check status Subscriber recordsUnsubscribed, held, suppressed

    Check the All Subscribers status, bounce history in the _Bounce data view, exclusion scripts and suppression lists. Most missing-email cases end here.

    Next: Cause found

  5. Cause found Subscriber recordsExpected, or rule corrected

    Either the exclusion was correct and is explained to the requester, or a wrong rule is corrected for future sends.

    End of the flow.

  6. Compare values Send log DELogged vs source

    Custom send log fields capture AMPscript variables at send time. Comparing them with the source row shows whether the data or the code produced the wrong content.

    Next: Wrong data or code?

  7. Wrong data or code? Send log DE

    If the logged values match a wrong source record, the data is at fault. If the source was right but the output was wrong, the AMPscript logic is.

    Next: Data: Fix source data; Code: Fix the AMPscript

  8. Fix source data Subscriber recordsThen check sync or import

    Correct the record at its source, not only in the data extension, or the next sync or import will bring the wrong value back.

    Next: Fix verified

  9. Fix the AMPscript Ops teamPreview and test sends

    Correct the logic, then preview as the affected subscriber and send tests. Handling empty values explicitly stops the same failure for others.

    Next: Fix verified

  10. Fix verified Ops teamResend only if appropriate

    The fix is verified with a test send. Whether to resend depends on the message; a duplicate promotion can do more harm than the original error.

    End of the flow.

When a missing or wrong email is reported, the team queries the send log data extension. No row means the subscriber was excluded, so status and exclusions are checked. A row means the send happened, so the logged values are compared with source data to decide whether the data or the AMPscript needs fixing, then the fix is verified. Original GeekMidst explanatory diagram; not an official Salesforce reference architecture.

Questions we hear

Do you design emails as well as build them?
We can advise on layouts that work well in email, but visual design is normally supplied by your team or agency. We focus on build, personalisation and testing.
Can marketers edit the templates without breaking them?
That is the aim. Locked structure with editable regions and approved content blocks lets marketers change content while the layout and footer stay protected.
Which mail clients do you test?
We agree a client and device list based on your audience, normally covering the major webmail, desktop and mobile clients. Your own engagement data shows which ones matter most.
Can you work with emails used in Journey Builder?
Yes. Journey and triggered emails get the same template library, with extra testing for the data each journey passes in.
Do you build for Marketing Cloud Next?
The coding principles are the same, but the tooling differs. We scope Marketing Cloud Next work separately through our implementation service.

Make email production faster and safer

Send us a few of your current emails and tell us where production slows down. We will suggest how a template library could help.

Discuss your email templates →

Next step: Email Development and Production

  1. We read it A practitioner reads your message and replies by email.
  2. Short call We confirm goals, constraints and what success looks like.
  3. Written scope You get a scope and estimate before any work starts.

Tell us what you are trying to fix.

Share your Salesforce setup, goals and constraints. A practitioner reads every message and replies with questions, first thoughts or an honest view of whether you need outside help at all.

Talk to a Salesforce Expert
Book a Consultation