AirMail 3.0

AirMail 3.1

phpVMS module to create a messaging system your phpVMS based virtual airline.

Released under the following license:

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

Developed by:

simpilot

Developed on:

phpVMS v2.1.934-158

php 5.3.4

mysql 5.0.7

apache 2.2.17

This system is not compatible with any earlier versions of AirMail

New Features:

-Delete All function in inbox and all message folders

-Individual pilot setting to have email sent to pilot when new message is received

-Threaded messages

-Cleaner templates to help with site integration

Install:

-Download the attached package.

-unzip the package and place the files as structured in your root phpVMS install.

-use the airmail.sql file to create the tables needed in your sql database using phpmyadmin or similar.

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'); ?>

-Create a link on your site for your pilots to access their AIRMail

<a href="<?php echo url('/Mail'); ?>">AIRMail</a>

File Updated 9/2/2011

files changed:

core/templates/sentitems.tpl

core/common/MailDataClass.php

File Updates 9/26/11

core/common/MailDataClass.php - NOTAM bug fix

Code hosted on Github - Link In Signature.

Did you install the new sql tables?

Did you drop the old tables first? A new sql file will not overwrite an existing table of the same name generally.

Works good. Good job Simpilot!

Hi! THANKS for this Dave Only one small problem I found when sending a NOTAM to pilots… it is inserting the NOTAM to the table with the same thread_id for everyone so when I click to read the message, I m getting the same message multiplied with the number of pilots…

Can you take a scrren shot or send me a copy of the db table? I do not seem to get this on my test install. If you had an older version of airmail installed did you drop the old tables prior to updating to the new ones?

Can you take a scrren shot or send me a copy of the db table? I do not seem to get this on my test install. If you had an older version of airmail installed did you drop the old tables prior to updating to the new ones?

Yes I did uninstall the previous version and i dropped the tables. Check here:

phpVMS:

DB:

I can verify it as well. and +1 by the way. Thanks for this Dave.

I have made some changes to the way the data is called out of the database and attached the new version (3.1.1) of the module to the first post. Let me know if that changes things for you.

2 Likes

That fixed it. Thanks a million! +1 more

Thanks! Just one more thing when I try now to open any mail i’m getting this: Warning : Invalid argument supplied for foreach() in /home/xxxx/public_html/fss/core/templates/mail/mail_open.tpl on line 19

Everything works fine so far. Love the option to get an email when you get a new message.

One of my members came with a question and that is why he can not open his sent messages.

He wants to look sometimes back what he has written in the matter at hand.

Can this be done?

As Always aith regards,

Cor

when I open a NOTAM appears this error and not reading the message

Warning: Invalid argument supplied for foreach() in /home/web/italianivolanti.it/iv/core/templates/mail/mail_open.tpl on line 19

@cor - Will look at that, looks like I did not add a link when i removed the body in that display to clean it up.

@mattia - Did you update your AirMail tables in the database when you put in AirMail 3.x ?

I have 2 years worth of mail except from the deleted items which i ran a line of sql to delete, Is there a way to preserve folders and saved mail from the old system?

So far working good. Nice job.

HI have you sent any notams?

G’day Simpilot,

How can i make the emails stay structured once sent. Once they get sent, it doesn’t account for any spacing between lines, or look the way i originally set it out. Is there anyway to change this ?

i was reading about wrap=“physical”, but it doesn’t work with mozilla, is there any other options to make these emails a bit easier to read ?

Cheers

Tylor

New package (3.1.2) uploaded to repair NOTAM bug.