apply_filters ( 'jetpack_contact_form_email_headers', string $headers, string $comment_author, string $reply_to_addr, string $to )

Allow customizing the email headers.<p>Warning: DO NOT add headers or header data from the form submission without proper escaping and validation, or you're liable to allow abusers to use your site to send spam.</p> <p>Especially DO NOT take email addresses from the form data to add as CC or BCC headers without strictly validating each address against a list of allowed addresses.</p>

Source file: modules/contact-form/grunion-contact-form.php

View in GitHub

Parameters

$headers

(string) Email headers.

$comment_author

(string) Name of the author of the submitted feedback, if provided in form.

$reply_to_addr

(string) Email of the author of the submitted feedback, if provided in form.

$to

(string) Array of valid email addresses, or single email address, where the form is sent.


Changelog

Since: Jetpack 10.2.0


How to use this hook

See Using actions and filters to customize Jetpack.

Notes

Have a note to contribute?