SQL Query standardization and error checking. Unfortunantly this was pretty much a re-write.
Added switch statement to index in order to conform with the rest of phpVMS
Setting up for ability to view sent mail.
Added ability to view sent mail.
added the link to view the sent mail. also renamed some weird variable...
some edits to controller redirections. Please dont use header()