What is X-TAGS?
Tagging your Pepipost emails lets you easily search activity, compare stats, and more. Some examples of Tags are: "Invoice Emails", "Forgot Password/OTP", "Newsletters" etc. Add tags to emails while sending emails through API or SMTP.
In case of SMTP just add an additional header to each of your emails.
Email headers are typically hidden from the end user. Generally, email headers are used to define routing information, which determine where the email is sent and how it arrived there. We can also add custom information to the header as RFC 822 supports that.
X-TAGS: "Forgot Password";
You can have multiple comma separated tags assigned to the same email.
Here is one example:
X-TAGS: "Movie Tickets, Invoice Emails";
Once the Tags are assigned to emails, you can analyse the same under your Pepipost account.
The X-TAGS that you add will be stripped from the final email because they are headers for internal tracking purpose. So you can expect to not actually see these headers in the final email.