wp_mail function not working in WordPress Plugin Boilerplate

If it’s undefined, that means you’re trying to run wp_mail() before it is loaded. Whatever you’ve hooked it to is too early. Hook your process to a later action. Essentially, anything like plugins_loaded or later.

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