Trying send mail from Theme page

If you assign wp_mail() to a variable you can echo the results. Should return either true or false.

$email = wp_mail(email,subject,message);
var_dump($email);

I don’t recognise the send_message() function in your code.

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