Skip to content

[Mailer] Document how to work with headers #13399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Nyholm opened this issue Mar 23, 2020 · 1 comment
Closed

[Mailer] Document how to work with headers #13399

Nyholm opened this issue Mar 23, 2020 · 1 comment
Labels
Milestone

Comments

@Nyholm
Copy link
Member

Nyholm commented Mar 23, 2020

Currently there is no documentation how to set headers on an email.

We should mention MetadataHeader and TagHeader and also plain old text headers.

@Seldaek
Copy link
Member

Seldaek commented Apr 14, 2020

BTW if someone is looking for an example of a header, mentioning this in the docs might be a nice helpful thing anyway:

$email->getHeaders()->addTextHeader('X-Auto-Response-Suppress', 'OOF, DR, RN, NRN, AutoReply');

This header tells most auto-repliers / holiday mode things that it's an automated email which does not require an auto-reply. It reduces quite a bit the amount of nonsensical email traffic you get back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants