Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can custom email headers trigger spam filters?

We do a lot of mailing and we use Sendgrid to give it unique arguments and categories. But for storage, archiving, filtering and search capabilities, I would like to give them some other custom headers too, something like a json format of this array

array('user' => 300, 'item' => 8842, 'country' => 'Croatia');

Now, is it possible for such custom headers to hurt the passthrough rate of our emails? In other words, is there a chance of our emails triggering spam filters due to having such custom headers?

like image 621
Swader Avatar asked May 21 '12 11:05

Swader


1 Answers

The convention for user defined headers is to prefix them with an X-. For example

X-my-custom-header: foo

This has been a part of the email spec for a long time (see: https://www.rfc-editor.org/rfc/rfc822) and shouldn't ever hurt your deliverability.


Also, related question: Custom header mail() and spam score

like image 80
Swift Avatar answered Sep 25 '22 20:09

Swift