Is it safe to add `stream` key in mail.php in laravel?

Posted 1 year ago by jonjie

Hi. I have research about it when sending an email to gmail. This solves the problem that when you send an email without this code, it is not sending the email or sometimes the email will go to the spam folder, but when you include it, the email is sending perfectly. Is this code safe? Do this code has advantage and disadvantage? Do this code affects the application?


'stream' => [
        'ssl' => [
            'allow_self_signed' => true,
            'verify_peer' => false,
            'verify_peer_name' => false,

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.