Vous le feriez en ajoutant un en-tête personnalisé, en utilisant le cfmailparam
étiquette. En tant que tel:
<cfmailparam
name="X-SMTPAPI"
value="{\"category\":\"Cool Emails\"}">
Dans le contexte du cfmail
Tag que ce serait le suivant.
<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>