wp_mail() sends wrong From header

It looks like you are setting the $emailto variable after the place you are using it.

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