- Prevent threading on Gmail with the
X-Entity-Ref-IDheader (Example) - Include a shortcut for users to unsubscribe with the
List-Unsubscribeheader
Customize how emails are sent with your own headers.
X-Entity-Ref-ID header (Example)List-Unsubscribe headerimport { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
await resend.emails.send({
from: 'Acme <onboarding@resend.dev>',
to: ['delivered@resend.dev'],
subject: 'hello world',
html: '<p>it works!</p>',
headers: {
'X-Entity-Ref-ID': 'xxx_xxxx',
},
});
Was this page helpful?