Code to send activate link
$confirm11=rand();
$con=md5($confirm);
$message11=' Your Registration Approved. Your Email and Password for Highclonoid Softec:
Name : '.Highclonoid Softec.'
Email : '.Highclonoid Softec.'
Password : '.Highclonoid Softec.'
category : '.Highclonoid Softec.'
your referal code to invite friend: '.Highclonoid Softec.'
Thanks for Registration
To Activate your profile click on below link or copy link to url bar(address bar)
http://HighclonoidSoftec.com/web/activation.php?con='.$con.'
';
$to= $email;
$from="info@Highclonoid Softec.com";
$subject1 = "Highclonoid Softecapproval request";
$mail_body = '
Message: '.$message11.'
From: ' . $from . '
Subject: ' . $subject1 . '
';
$headers = "Highclonoid Softec.com";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject1, $mail_body, $headers);
---------------------------------------------------------------------------------
Code to activate the link
<?php
$id=$_GET['con'];
$query=mysql_query("UPDATE registration SET approval='approved' WHERE confirm_code='$id'") or die(mysql_error());
$sql="SELECT * FROM registration WHERE confirm_code='$id' and approval='approved'";
$result=mysql_query($sql) or die(mysql_error());
// Mysql_num_row is counting table row
while($row=mysql_fetch_array($result))
{
$fullName=$row['fullName'];
$email=$row['email'];
$contact=$row['contact'];
$category=$row['category'];
$sub_type=$row['sub_type'];
$city=$row['city'];
$message11='profile is activated at Highclonoid Softec.com
Name : '.$fullName.'
Email : '.$email.'
Contac No. : '.$contact.'
Category. : '.$category.'
subcategory. : '.$sub_type.'
city. : '.$city.'
';
$to= "Highclonoid Softec.com@gmail.com";
$from="info@Highclonoid Softec.com";
$subject1 = "'profile is activated at Highclonoid Softec.com";
$mail_body = '
Message: '.$message11.'
From: ' . $from . '
Subject: ' . $subject1 . '
';
$headers = "Highclonoid Softec.com";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject1, $mail_body, $headers);
$message11='profile is activated at Highclonoid Softec.com
Name : '.$fullName.'
Email : '.$email.'
Contac No. : '.$contact.'
Category. : '.$category.'
subcategory. : '.$sub_type.'
city. : '.$city.'
';
$to=$email;
$from="info@Highclonoid Softec.com";
$subject1 = "'profile is activated at Highclonoid Softec.com";
$mail_body = '
Message: '.$message11.'
From: ' . $from . '
Subject: ' . $subject1 . '
';
$headers = "Highclonoid Softec.com";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject1, $mail_body, $headers);
echo '<script type="text/javascript">';
echo 'alert("Your Email has been verified and Profile is activated and please Login");';
echo 'window.location.href = "login.php";';
echo '</script>';
}
?>
$confirm11=rand();
$con=md5($confirm);
$message11=' Your Registration Approved. Your Email and Password for Highclonoid Softec:
Name : '.Highclonoid Softec.'
Email : '.Highclonoid Softec.'
Password : '.Highclonoid Softec.'
category : '.Highclonoid Softec.'
your referal code to invite friend: '.Highclonoid Softec.'
Thanks for Registration
To Activate your profile click on below link or copy link to url bar(address bar)
http://HighclonoidSoftec.com/web/activation.php?con='.$con.'
';
$to= $email;
$from="info@Highclonoid Softec.com";
$subject1 = "Highclonoid Softecapproval request";
$mail_body = '
Message: '.$message11.'
From: ' . $from . '
Subject: ' . $subject1 . '
';
$headers = "Highclonoid Softec.com";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject1, $mail_body, $headers);
---------------------------------------------------------------------------------
Code to activate the link
<?php
$id=$_GET['con'];
$query=mysql_query("UPDATE registration SET approval='approved' WHERE confirm_code='$id'") or die(mysql_error());
$sql="SELECT * FROM registration WHERE confirm_code='$id' and approval='approved'";
$result=mysql_query($sql) or die(mysql_error());
// Mysql_num_row is counting table row
while($row=mysql_fetch_array($result))
{
$fullName=$row['fullName'];
$email=$row['email'];
$contact=$row['contact'];
$category=$row['category'];
$sub_type=$row['sub_type'];
$city=$row['city'];
$message11='profile is activated at Highclonoid Softec.com
Name : '.$fullName.'
Email : '.$email.'
Contac No. : '.$contact.'
Category. : '.$category.'
subcategory. : '.$sub_type.'
city. : '.$city.'
';
$to= "Highclonoid Softec.com@gmail.com";
$from="info@Highclonoid Softec.com";
$subject1 = "'profile is activated at Highclonoid Softec.com";
$mail_body = '
Message: '.$message11.'
From: ' . $from . '
Subject: ' . $subject1 . '
';
$headers = "Highclonoid Softec.com";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject1, $mail_body, $headers);
$message11='profile is activated at Highclonoid Softec.com
Name : '.$fullName.'
Email : '.$email.'
Contac No. : '.$contact.'
Category. : '.$category.'
subcategory. : '.$sub_type.'
city. : '.$city.'
';
$to=$email;
$from="info@Highclonoid Softec.com";
$subject1 = "'profile is activated at Highclonoid Softec.com";
$mail_body = '
Message: '.$message11.'
From: ' . $from . '
Subject: ' . $subject1 . '
';
$headers = "Highclonoid Softec.com";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject1, $mail_body, $headers);
echo '<script type="text/javascript">';
echo 'alert("Your Email has been verified and Profile is activated and please Login");';
echo 'window.location.href = "login.php";';
echo '</script>';
}
?>