Our SDKs and API now support adding tags to emails. Whether you're sending transactional emails or broadcast emails like campaigns and newsletters, tags let you organize and categorize emails for better oversight.
Examples of using tags:
- Campaigns: categorize emails by campaign and gain insights into each campaign's performance.
- Email types: distinguish between different types of emails, like orders and payment confirmations.
- Priority: mark emails based on their urgency, such as password resets.
- Departments: assign emails to specific teams, like customer service or marketing.
Using tags
Tags can be used through our SDKs, SMTP, and API. Here's how to assign tags to emails using PHP:
$lettermint = new Lettermint\Lettermint('your-api-key');
$lettermint->email
->from('John Doe <john@yourdomain.com>')
->to('recipient@example.com')
->subject('Your acount is ready!')
->html('<h1>Welcome!</h1><p>Thanks for signing up.</p>')
->text('Welcome! Thanks for signing up.')
->tag('onboarding')
->send();
If a tag doesn't exist yet, it's automatically created. Tags can be used multiple times and assigned to multiple emails.
For more information about using tags and requirements, check our documentation.
Dashboard overview
Within the Lettermint dashboard, you can easily filter by tags to get a better overview of emails. This is especially useful when you want to find specific emails or view campaign performance.
Besides the dashboard, you can also filter by tags through our API.
