I am trying to connect private email with my Laravel project.
.env configuration below
MAIL_DRIVER=smtp
MAIL_HOST=mail.privateemail.com
MAIL_PORT=587
MAIL_USERNAME=contact@myDomainName.com
MAIL_PASSWORD=myPrivateEmailPassword
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=contact@myDomainName.com
MAIL_FROM_NAME=MyCustomName
After this , I run this three command,
php artisan config:clear
php artisan config:cache
php artisan queue:restart
I have too many EmailJob files to send emails. That's why I used the last command.
What I am getting the error?
{"status":500,"data":"stream_socket_enable_crypto(): Peer certificate CN=`111-11-11-227.cprapid.com' did not match expected CN=`mail.privateemail.com'"}
Note: 111-11-11-227 is the fake number I gave here. Because I need to keep it private.
Laravel 5.8