if(!empty($result)) { $to="someone@domain.com";; $subject="Your confirmation link here"; $message="Your Comfirmation link"; $message.=" Click on this link to activate your account "; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $sentmail = mail($to,$subject,$message,$headers); } else { echo "Email Address Is Not In Database!"; } if($sentmail) { echo "Your Confirmation link Has Been Sent To Your Email Address."; } else { echo "Error! Cannot send Confirmation link "; }
ini_set("SMTP", "domainname.com"); ini_set('sendmail_from', "yourname@domain.com");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)