Sending an email using PHPMailer and GMAIL SMTP

后端 未结 1 764
离开以前
离开以前 2021-01-22 23:42

I have read every example out in the web and I still cant seem to connect to the GMAIL SMTP. Here is the code that I am running:

include(\"phpMailer/class.phpmai         


        
1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-23 00:14

    As I mentioned above I had already enabled ssl by getting rid of the ; on the line with php_openssl.dll and restarting Apache. I did some more reading and I found out that some people also had "[PHP_OPENSSL]" before the enabling command. I added it and restarted Apache and everything is working! Thanks for all the comments

    In php.ini:

    [PHP_OPENSSL]
    extension=php_openssl.dll
    

    0 讨论(0)
提交回复
热议问题