Automattic / Automattic/jetpack

Feature Request: Newsletter - Add `[Test]` to the subject line of test emails

Open
#42,647 1 comment 0 reactions 0 assignees View on GitHub
[Experiment] AI labels added [Feature Group] Content Management [Feature] Jetpack [Feature] Subscriptions [Plugin] Jetpack New Feature
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### What

Add `[Test]` to the subject line of test emails sent when users are previewing or testing newsletters.

### How

When a user sends a test email from the newsletter editor, prepend `[Test]` to the subject line programmatically before dispatch. For example, if the original subject is `March Travels`, the test email subject would appear as `[Test] March Travels`.
This change should apply only to test emails and not affect the subject of the actual newsletter when it's sent to subscribers.

This makes it easier for users to distinguish test emails from live newsletters in their inbox. It helps prevent confusion, reduces the risk of accidentally forwarding or acting on a test email as if it were live, and aligns with common email testing practices.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by locating the newsletter editor's test-email dispatch path in Jetpack and inspect how the subject is passed before sending. Done means test emails show a `[Test]` prefix while live subscriber emails retain the original subject; add or update coverage for both paths if the relevant tests are found.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.