query($sql); $row = $result->fetch_assoc(); $user_name = $row['name']; $sql = "SELECT documents.id,documents.number,type.name as doc_type, documents.description,department.name as department,company.name as company, city.name as city,province.name as province,documents.vault,documents.folder,documents.file FROM documents LEFT JOIN type on type.id = documents.type LEFT JOIN department on department.id = documents.department LEFT JOIN company on company.id = documents.company LEFT JOIN city on city.id = documents.city LEFT JOIN province on province.id = documents.province WHERE documents.id = $id;"; $result = $conn->query($sql); $row = $result->fetch_assoc(); $doc_no = $row['number']; $doc_type = $row['doc_type']; $description = $row['description']; $department = $row['department']; $company = $row['company']; $city = $row['city']; $province = $row['province']; $folder = $row['folder']; $vault = $row['vault']; $file =$row['file']; ?>

Dear ,


I hope this email finds you well. I am pleased to inform you that the document request has been approved and released.

After careful review and consideration, we are happy to grant your request for the following document:

Document_Number
Document_Type
Description
City
Province
Department
Company

You may view the approved documents by clicking this link: https://vault.obanana.com/viewdoc.php

Note that the link will expire and can no longer be viewed after 24 hours upon receiving this email.

If you have any questions or need any further assistance regarding your approved document request, please don't hesitate to contact our dedicated customer support team at [Contact Details]. Our team is always ready to help you.

Thank you for choosing [Company/Organization Name] for your document needs. We appreciate your cooperation and look forward to serving you in the future.


Best regards,

The Vault Management Team