Im using the SendGrid API in my Windows Azure environment to send emails. I have a need to alter the email priority (Low\High Importance) of some emails, but I don't see any properties that allow me to do this.
Does anyone have experience with SendGrid who knows how to change the priority? There is a property that allows me to add headers.. so Im not sure if that's something I can use to do this?
Thanks in advance!
If you are using the Web API you can use the headers parameter as you mention. If sending via SMTP you can just add the headers to your message.
There are a few headers defined in RFC 4021 that support this as well as some custom ones. I'd use the following JSON for the headers parameter to start:
{“Priority”: “Urgent”, “Importance”: “high”}
If that doesn't work you can also look into the X-Priority
and X-MSMail-Priority
headers.