Lo faresti aggiungendo un'intestazione personalizzata, usando il cfmailparam
etichetta. Come tale:
<cfmailparam
name="X-SMTPAPI"
value="{\"category\":\"Cool Emails\"}">
Nel contesto del cfmail
tag sarebbe il seguente.
<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>