the error is:-( ! ) Warning: mail(): Failed to connect to mailserver at "ssl:smtp.gmail.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in F:\wamp\www\ihbt\signup.php on line 75
Actually i am trying to send activation email but the above error is showing up. i am using wamp.
here is the code
<?php
ini_set("SMTP","ssl:smtp.gmail.com" );
$myem = "my gmail account@gmail.com";
$msg = "almost there..";
if (mail("$email", "Activate your email","$msg", "From: $myem")){
echo "Email sent";
}
else
echo "Email sending failed";
?>