Confirmation email Contact Form 7 [closed]

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' );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)