how come it keep telling me that the email cannot be sent? i have go daddy. heres the code im using
// send e-mail to ...
$to=$email;
// Your subject
$subject="Your confirmation link here";
// From
$header="from: you %26lt;someone@somewhere.com%26gt;";
// Your message
$message="Your Comfirmation link \r\n";
$message.="Click on this link to activate your account \r\n";
$message.="http://www.yourweb.com/conf...
// send email
$sentmail = mail($to,$subject,$message,$header);
}
// if not found
else {
echo "Not found your email in our database";
}
// if your email succesfully sent
if($sentmail){
echo "Your Confirmation link Has Been Sent To Your Email Address.";
}
else {
echo "Cannot send Confirmation link to your e-mail address";
}
?%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;
Php email not sending?
hi
first check you configuration whether the mail function (SMTP) enabled or not by using the phpinfo();
If not enable that using the PHP.ini or .htacess file
Thanks
Roopesh
Reply:You need to get an SMPT server in order to sent mails.
Search one in google, and also search how to configure it. I know you need it.
If you have your web hosted, make sure that the host allowds mail() function.
dental hygienist
No comments:
Post a Comment