|
hello everybody
i registered for a very good free webhosting with nice subdomain which offers POP3 IMAP and SMTP with SSL/TLS and many other features.
when i created my webmaster e-amil, the control panel gives me the feature to make a test.
so i did and it worked very good.
so the next step was to test this in a php script and it worked good too, here it is:
--------------------
<?php
$from = "webmaster@my-subdomain";
$to = "my-other-email@external-domain";
$subject = "testing";
$body = "testing the mail function";
if(mail($to,$from,$subject,$body)) {echo "success\n";}
else {echo "failure\n";}
?>
--------------------
now i want send emails with ssl authentication and after build a customized client for sending mails and viewing reiceived mails. i searched for that and i found some interresting things, and i understood that they used some third party packages, like phpmailer, curl and pear's mail which need to be installed and modify the php.ini file for ssl library, allowing to send via external servers like gmail which is very nice thing and i know that i can use it with my subdomain server as well.
the problem is that i don't have access to the php.ini file, and even if i can, i don't want do that because i know that i have already everything installed with my registration, and the proof was the two test e-mails.
what i can't know is which package my registeration is using. i give some config infos of my subdomain that i got from phpinfo() to help you :
i have the incoming and outgoing servers with their corresponding ports for both secured and non secured mail services (servers used for ssl and non-ssl are different).
PHP Version 5.3.3
---------------------------------
Registered Stream Socket Transports : tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
---------------------------------
mail.add_x_header On On
---------------------------------
zend.enable_gc On On
---------------------------------
cURL
cURL support enabled
SSL Yes
Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
---------------------------------
IMAP
SSL Support enabled
Kerberos Support enabled
---------------------------------
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.0-fips 29 Mar 2010
OpenSSL Header Version OpenSSL 1.0.0-fips 29 Mar 2010
---------------------------------
Sockets Support enabled
---------------------------------
in some tutos, they say that php4 and later (which the case here) comes with built-in pear mail package, but i dont know how to verify that. i think it is an issue, no ?!!!!
so i tried a code (How to Send Email from a PHP Script Using SMTP Authentication By Heinz Tschabitscher) but it gives me a require_once error, because this :
require_once "Mail.php";
it told me that the file deosn't exist in the include path or something like that.
sorry if my message is very long but i want make it clear and easy for anyone want help me.
thank you for your effort.
|
|
|
|