Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example code for caldera_forms_autoresponse_mail filter See: https://calderaforms.com/doc/caldera_forms_autoresponse_mail/
<?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 );
<?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 );
<?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
You can’t perform that action at this time.