PHP alkalmazás létrehozása keretrendszer nélkül/ Professional PHP: Building maintainable and secure applications

PHP alkalmazás létrehozása keretrendszer nélkül:

A small tutorial to show how to create a PHP application without a framework.

Laravel, Gmail sending

In Laravel project directory, edit config/mail.php and add the following:

‘stream’ => [
‘ssl’ => [
‘allow_self_signed’ => true,
‘verify_peer’ => false,
‘verify_peer_name’ => false,
It worked for me.

Fyi, my SMTP settings are:

MAIL_USERNAME=[Full Gmail Address]
MAIL_PASSWORD=[Google App Password obtained after two step verification on Google Account Page]