Send emails with wp_mail() using SMTP configured in plugin

When you’re using something like Easy WP SMTP, what you’re doing is configuring things so that wp_mail() sends using your validated SMTP account rather than the generic mailer on the web server.

The a common confusion and misconception is that you are using SMTP OR wp_mail(). Actually what you’re doing is changing what wp_mail() is using to send.

So you’re still using wp_mail(). Properly configured, anything going through wp_mail() will be going through your SMTP account.

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