[Journal Section] cannot be blank (1. Start)

"; } if ($submission_file=="") { $message.="

[Submission File] is not uploaded (2. Upload Submission)

"; } if ($title=="") { $message.="

[Title] cannot be blank (3. Add Authors and Metadata)

"; } if ($abstract=="") { $message.="

[Abstract] cannot be blank (3. Add Authors and Metadata)

"; } $sql8 = "SELECT * FROM authors_record WHERE submission_id = '$_SESSION[last_insert_id]'"; $result8 = mysqli_query($conn, $sql8) or die(mysqli_error($conn)); if (mysqli_num_rows($result8) == 0) { $message.="

Aleast one author must be added (3. Add Authors and Metadata)

"; } if($message==''){ //all required field are completed, proceed $date_submit_start=date('d-M-Y'); $sql = "UPDATE submission_tbl SET status = 'completed', date_time = '$date_submit_start' WHERE id = '$_SESSION[last_insert_id]' AND user_id='$_SESSION[id]'"; mysqli_query($conn, $sql) or die(mysqli_error($conn)); $message = "

Submisson was successful!

"; //============================ Send email ================================= $recipient = $user_email; //"recipient@example.com"; // Receiver's email address $subject = "You have successfully submitted your manuscript in the Annals of Science and Technology"; // Subject of the email $body = " Dear ".$user_fullname.",
Thank you for submitting the manuscript,\"$title\" to Anal of Science and Technology – An official Journal Nigerian Young Academy.
With the online journal management system that we are using, you will be able to track its progress through the editorial process by logging in to the journal web site:
Submission URL: https://astnya.com/login.php?status=1
If you have any questions, please contact me. Thank you for considering this journal as a venue for your work.

Best regards,
Oluwaseun Adedokun (PhD, FNYA)
Managing Editor, Anal of Science and Technology – An official Journal Nigerian Young Academy
Alternative Email Addresses:
oadedokun@lautech.edu.ng | astjournals@gmail.com "; // Body of the email //========================================================================================= ?> isSMTP(); $mail->Host = 'das110.truehost.cloud'; $mail->SMTPAuth = true; $mail->Username = 'mail@astnya.com'; $mail->Password = 'zX+jxmS)gxq.'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Use TLS encryption $mail->Port = 587; //Recipients $mail->setFrom('mail@astnya.com', 'Annals of Science and Technology'); $mail->addAddress($recipient, $user_fullname); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $body; $mail->AltBody = $body; $mail->send(); //echo 'Email sent successfully'; //echo $message; } catch (Exception $e) { echo "Email could not be sent. Mailer Error: {$mail->ErrorInfo}"; } //======================================================================== } } } ?>

Submission



Confirmation