How to install php_openssl.dll in window XP?

In order to send email using SMTP, I was told to install php_openssl.dll first. I use my notebook computer as server. Now I have AppServ V.2.5.8. for windowXP[size=10pt][/size], Apache web serer v.2.2.4 and PHP script language v5.2.1 . .

I dont know about using secure sockets for that, maybe but for sure you should check with your isp to make sure that port 25 is not blocked for you, most isp’s automatically block this port to prevent the entire world from being spammers from home, then you will have to alter your php.ini or use ini_set() to add the smtp login info !

http://php.net/manual/en/install.windows.extensions.php

May I ask in order to send email, is it true I must first install the php_openssl.dll under window XP?
When I look at my php-ini setting, I have the extension_dir C:/AppServ\php5\ext,
in fact I have all my php source code in C:/AppServ\www/phptest2/

I also have [Mail function]
;For win32 only
SMTP=smtp.netvigator.com
smtp-port = 25

;For win32 only.
sendmail from = [email protected]

Search for Dynamic Extensions in your php.ini file and make sure php_openssl.dll is there.
So php_openssl.dll is in the list, and in the extension folder

I search for the “Dynamic Extention” in php.ini or in folder of Windows, but cannot find it. Do you mean
open php.ini and find
;extension=php_openssl.dll

change to

extension=php_openssl.dll

thanks for the help

Yes, open php.ini which should be located at C:/AppServ\php5
Search for “Dynamic Extensions”.

If ;php_openssl.dll is listed there remove the ; so it just reads php_openssl.dll.
If not, add “php_openssl.dll” to the list
Make sure the “php_openssl.dll FILE” is in the php ext. directory located at C:/AppServ\php5\ext

Thank you for the reply, I think I still cannot get your meaning. (1) I cannot find the Dynamic Extention in php.ini
(2) How do I know if I already have the php_openssl.dll ? where can I find it? I already remove the ; as seen from my last post. (3) How to put the php_openssl.dll file in C:/AppServ\php5\ext if it is somewhere in C:

Your php.ini must be different to mine.
If you have added php_openssl.dll to your extension list thats all that should be done there.
Download php_openssl.dll file and place it in the extensions folder.

I’m at work, I will setup this extension at home and tell you how far I get.

Ok. I just got my localhost to send an email to my gmail account.

Heres exactly what I did. If you cant follow this I cant help you sorry.

I downloaded php_openssl.dll from http://www.dlldll.com/getdll/4593.html (just enter the capture image, dont download the dll fix or anything)
I opened the .rar file and extracted php_openssl.dll into \php\ext

I then opened my php.ini file.
Found my extensions list by searching ;extension=
I then added " extension=php_openssl.dll "
I found out what my ISP’s SMTP Server was by googling it.
I added them to my php.ini file.

[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = smtp.vodafone.co.nz ; http://php.net/smtp-port smtp_port = 25

I logged into my Router and ensured my port was open and allocated Mail Server (SMTP) to my list of applications allowed. (port 25)

I then restarted my apache server to reload the php.ini file.

I then used [php]<?php
$to = ‘[email protected]’;
$subject = ‘the subject’;
$message = ‘hello’;
$headers = ‘From: [email protected]’ . “\r\n” .
‘Reply-To: [email protected]’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();

mail($to, $subject, $message, $headers);
?>[/php] to send the email.
Email arrived in my inbox while I was half way through writing this.

Cant be much more help than this :confused:

Sponsor our Newsletter | Privacy Policy | Terms of Service