<?php
include("lib/Config.php");
$id=$_GET['id'];
$sel="select email,status,aid from abstract_traking where id='$id'";
$res=$DB->executeQuery($sel);
$rec=getAssoc($res);
	
$to = $rec['email'];

$sub = "Update Alert: Proposal Submission Status";

$msg = "Dear Author, <br/>";
$msg .= "Greetings for the day! <br/>";
$msg .= "<p>We value your patronage and are truly delighted to have you as a part of our conference. <br/>
This email is to let you know the change in status of your submission.</p> ";
$msg .= "<b>Abstract Status:</b> ".$rec['status']."<br/><br/>";
$msg .="<b>Login Tool:</b> <a href='https://globalnursingconference.com/login.php' target='_blank'>https://globalnursingconference.com/login.php</a><br/>
<b>User ID:</b> ".$rec['email']."<br/>
<b>Password:</b> ".$rec['aid']."<br/><br/>";
$msg .="<p>To know more details, please login to Abstract Tracking Tool in the conference website with your credentials provided earlier.<br/> We will keep you updated.</p>";
$msg .="<p>Regards,<br/>
Team Sciinov</p>";
$msg .="<p><b>Note:</b> while login to the abstract tracking tool make sure there are no additional spaces in Used Id & Passcode which usually occur during copy/pasting.</p>";
$msg .="<p>This is an automatically generated email.</p>";
$from = "submissions@sciinovgroup.com";
$headers = "content-type: text/html"."\r\n"."from: $from";

mail($to, $sub, $msg, $headers);

header("Location:abstract_traking.php?action=list");
exit;
?>