在php.ini中没有extension = php_openssl.dll用于发送激活链接到电子邮件

I have created login and register page using php with pdo.

After register, the activation link didn't send at registered email.

I refered this link How to configure XAMPP to send mail from localhost? in stackoverflow,

I don't have extension=php_openssl.dll in php. can anyone tell me, what i do?

I m using xampp1.7.4

Do you have the php_openssl.dll in you ext directory? If you have that you should be able to get it working by adding the line to php.ini.

If you are missing the dll, you can try to download the same version of php as included in your XAMPP and get the dll file from there. PHP downloads for windows can be found at http://windows.php.net/download/

I had the same issue. did uncomment the extension=php_openssl.dll in php.ini but still was having the issue.

On checking loaded extensions using the command php -m openssl was missing. At last i found that the directory for extensions was not properly set by default so had to un-comment extension_dir = "ext"

Hope this will help others