2021.1

Table Of Contents
Documentation: https://sendgrid.com/docs/API_Reference/SMTP_API/using_the_smtp_
api.html. (Use the SMTP API; the Connect Server sends SMTP email).
Add a name meta tag with the value X-SMTPAPI and set its content to the required JSON string
(for example: "' category': ['invoices']").
You can make this setting in the Email section properties (see "Meta information" on
page529).
Alternatively you could write a Control Script, for example:
var headerObj = {
"category": ["invoices"]
};
merge.context.sections["Content"].addHeader("X-SMTPAPI",
JSON.stringify(headerObj));
Note
Sendgrid strips out their mail headers. The results need to be verified via their
Dashboards (e.g. the Stats section lets you verify the stats for specific categories).
Alternatively one can use their Web API to retrieve stats in JSON format. To view the
category stats, log in to Sendgrid and choose: Stats > Category Stats > your category
name.
Page 1485