Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/119d61b0e3af17f3432c163883506e57 to your computer and use it in GitHub Desktop.
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/
<?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