Create custom mail header field

2019-08-26 21:08发布

问题:

I'm making a program which sends invoices to registered users as PDF attachment. Each invoice is identified by a GUID. In some circumstances I want to be able to find programmatically the GUID from mail without reading PDF file.

Can I use mail header field to include invoice GUID, or it is a bad practice and mail header fields are not for this purpose?

回答1:

It is common practice to use "X-HeaderName" to designate non-standardized headers.