Created
August 4, 2017 18:18
-
-
Save Shelob9/119d61b0e3af17f3432c163883506e57 to your computer and use it in GitHub Desktop.
Example code for caldera_forms_autoresponse_mail filter See: https://calderaforms.com/doc/caldera_forms_autoresponse_mail/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Add a BCC to Caldera Forms auto-responder email | |
*/ | |
add_filter( 'caldera_forms_autoresponse_mail', function( $email_message, $config, $form){ | |
$email_message[ 'headers' ][] = 'Bcc: hi@hiroy.club'; | |
return $email_message; | |
}, 10, 3 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Add a CC to Caldera Forms auto-responder email | |
*/ | |
add_filter( 'caldera_forms_autoresponse_mail', function( $email_message, $config, $form){ | |
$email_message[ 'headers' ][] = 'Cc: hi@hiroy.club'; | |
return $email_message; | |
}, 10, 3 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Change Caldera Forms auto-responder reply-to | |
*/ | |
add_filter( 'caldera_forms_autoresponse_mail', function( $email_message, $config, $form){ | |
$email_message[ 'headers' ][] = 'Reply-To: hi@hiroy.club'; | |
return $email_message; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment