Hook into wpcf7_mail_sent
action, it fires after the mail is successfully sent.
function wpse_368498_cf7_mail_sent( $contact_form ) {
//Your confirmation code here
}
add_action( 'wpcf7_mail_sent', 'wpse_368498_cf7_mail_sent' );
Hook into wpcf7_mail_sent
action, it fires after the mail is successfully sent.
function wpse_368498_cf7_mail_sent( $contact_form ) {
//Your confirmation code here
}
add_action( 'wpcf7_mail_sent', 'wpse_368498_cf7_mail_sent' );