Repeated headers in wp_mail

You use an index in your $header variable. AFAIK this should be left empty.

Try $headers[] = trim( $content );

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