I am trying to send email using following script but it's not working and throwing error:
<cfmail to="user@mydomain.com"
from="user@mydomain.com"
<!--- subject="#sub#" --->
type="html"
server="smtp.sendgrid.net"
timeout="360"
username="un"
password="psw" >
<cfmailparam name="X-SMTPAPI" value="{\"category\":\"Cool Emails\"}">
<cfoutput>
Hello
</cfoutput>
</cfmail>
Error is :Invalid token \ found on the <cfmailparam tag line
I have tried removing tags as well still it didn't work.