���� ������������������������������������ alert('User is already Registered with this email, please use another email to Register. '); window.location.href='join.php'; "; }else{ $_POST['password'] = md5($_POST['password']); $_POST['sector']?$_POST['sector']:$_POST['sector']=null; $_POST['company_name']?$_POST['company_name']:$_POST['company_name']=null; $_POST['phone']?$_POST['phone']:$_POST['phone']=null; $query=mysqli_query($conn,"insert into users set usertype = 'Website', fname = '".$_POST['fname']."', lname = '".$_POST['lname']."', buss_email = '".$_POST['buss_email']."', phone = '".$_POST['phone']."', company_name = '".$_POST['company_name']."', sector = '".$_POST['sector']."', email = '".$_POST['email']."', password = '".$_POST['password']."', created = '".date('d','m','y')."', modified = '".date('d','m','y')."', status = 'Applied' "); if($query){ $last_id = $conn->insert_id; $_SESSION['user_id'] = $last_id; echo ""; require_once('class.phpmailer.php'); include("class.smtp.php"); $mail = new PHPMailer(); $to = $_POST['email']; $from = 'info@ivy-x.com'; $subject = 'Thanks for Registration.'; $body="
Welcome to Accelerativ !!
You are Registered with Accelerativ with following Details:-
First Name : ".$_POST['first_name']."
Last Name : ".$_POST['last_name']."
Email : ".$_POST['email']."
Heard About : ".$_POST['heard_about']."
Idea State : ".$_POST['idea_state']."
"; $mail->IsSMTP(); // telling the class to use SMTP $mail->Host ="mail.ivy-x.com"; // SMTP server $mail->SMTPDebug = 1; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "mail.ivy-x.com"; // sets the SMTP server $mail->Port = 587; // set the SMTP port for the GMAIL server $mail->Username = "info@ivy-x.com"; // SMTP account username $mail->Password = "Ganteng123"; // SMTP account password $mail->SetFrom('info@ivy-x.com','IVYX'); $mail->Subject = "Thanks for Registration."; $mail->MsgHTML($body); $address = $to; $mail->AddAddress($address, $name); if(!$mail->Send()) { } else { echo ''; } }else{ echo ""; } } } ?>