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


Notes

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s