How to check if is page template inside functions.php

So, I figured it out. Using hook wpcf7_before_send_mail you don’t have access to all meta data needed for is_page_template function to work. So instead, you have to use methods showed here

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