wp_mail issue with sending PDF

Instead of attaching the attachments to body content. Pass it as separate parameter. Like the below one.

      @wp_mail($to, $subject, $msg, $headers,$mail_attachment);

I guess it solves your problem.

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