AIRMail beta2
New Features
1 - Drop down of all pilots for “To” field when sending new AIRMail
2 - Option in dropdown of “NOTAM” which sends the AIRmail to all pilots of the airline
3 - Streamlined code to only use pilotid in the db so if a pilot switches airlines or the airline changes it’s code the pilots AIRMail will still be available
4 - Function to delete sent items out of your sent items list
5 - Function to show pilot if there is new AIRMail waiting (With Animated Image!)
6 - Added function to insert “No Subject” in the subject line when an AIRMail is sent so it can still be opened by the receiving pilot(s)
7 - Function added to deny sending AIRmail with the “To” field empty
To Use the “You Have Mail” function place the following code where you would like the notice to appear, it will only appear if the pilot is logged in.
<?php MainController::Run('Mail', 'checkmail'); ?>
To Install
1 - Download the attached package
2 - Unzip the folder and place the files in their appropriate places in your phpVMS install
3 - Run the sql file in your phpVMS database using phpmyadmin or similar
(If you have been testing the first version you will have to drop the existing airmail table and replace it with the new file, many changes have been made since the first beta and the new edition will not work within the old db table)
4 - Create a link on your site for your pilots to access their AIRMail
<a href="<?php echo SITE_URL ?>/index.php/Mail/inbox">AIRMail</a>
Please let me know of any bugs you find and any other additional functions that may be beneficial to the addon.
[AIRMail.zip](< base_url >/applications/core/interface/file/attachment.php?id=71)