Sie würden dies tun, indem Sie einen benutzerdefinierten Header hinzufügen, indem Sie die verwenden cfmailparam
Schild. Als solche:
<cfmailparam
name="X-SMTPAPI"
value="{\"category\":\"Cool Emails\"}">
Im Kontext der cfmail
Tag wäre es wie folgt.
<cfmail
from="you@example.com"
to="nick@sendgrid.com"
subject="I am using CF Mail to do this!">
<cfmailparam
name="X-SMTPAPI"
value="{\"category\":\"Cool Emails\"}">
Look at my awesome use of cfmail!
</cfmail>