Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to send a test mail to my gmail account from a php application. i tried lot of codes but the messge was not delivering.

i tried many codes from good it was saying error in the error file that

sendmail: Error during delivery: SSL is not available on this server.

what i have to configure in php.ini

plz help me.
Posted
Updated 24-Jun-10 2:20am
v2

Did you get any error? What code did you try? Try Google for "send mail php" you will get lots of working code.
 
Share this answer
 
try!

$host = "ssl://mail.example.com";
$port = "465";
 
Share this answer
 
Comments
Adrabi Abderrahim 24-Jun-10 9:41am    
sorry! :D $host = "ssl://smtp.gmail.com";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900