PHP mail() works but wp_mail() does not

The plugin, WP Mail SMTP, looks like a possible solution to use the wp_mail() properly on your localhost. According to the description:

Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.

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