Failed to authenticate on SMTP server error using gmail

This will not work as of May 30, 2022 checkout here https://support.google.com/accounts/answer/6010255?hl=en&authuser=6 Thanks @sarout for pointing this out. Did you turn on the “Allow less secure apps” on? go to this link https://myaccount.google.com/security#connectedapps Take a look at the Sign-in & security -> Apps with account access menu. You must turn the option “Allow less secure … Read more

Laravel mail: pass string instead of view

update on 7/20/2022: For more current versions of Laravel, the setBody() method in the Mail::send() example below has been replaced with the text() or html() methods. update: In Laravel 5 you can use raw instead: Mail::raw(‘Hi, welcome user!’, function ($message) { $message->to(..) ->subject(..); }); This is how you do it: Mail::send([], [], function ($message) { … Read more

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