Skip to content
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

[Feature Request] Add custom headers #16

Open
ncou opened this issue Oct 21, 2017 · 3 comments
Open

[Feature Request] Add custom headers #16

ncou opened this issue Oct 21, 2017 · 3 comments

Comments

@ncou
Copy link
Contributor

ncou commented Oct 21, 2017

Hi,

Is it possible to add a new feature to add custom headers ?

I think to add a custom header to check after the email send, the percent off "mail bounce" using this header to check via imap the returned mails.

@swt83
Copy link
Owner

swt83 commented Oct 23, 2017

Can you show me some examples?

@ncou
Copy link
Contributor Author

ncou commented Oct 23, 2017

Here about the example :
https://dyn.com/blog/what-are-x-headers-email-delivery-101-why-do-they-matter/

And here for the spec :
http://www.faqs.org/rfcs/rfc822.html#b

PHPMailer has a method "addCustomHeaders()" here https://github.com/PHPMailer/PHPMailer/blob/10341cc3106916a218c4fc3394f674adf127d625/src/PHPMailer.php#L3638

Looks like the custom header should start with "X-".

@swt83
Copy link
Owner

swt83 commented Oct 26, 2017

I don't have any objection, if you want to add this ability and submit a pull request.

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

No branches or pull requests

2 participants