Skip to content

CheapoMail provides a simple messaging system that only sends mail to other CheapoMail users. This obviously isn't very scalable but CheapoMail doesn't need to be as there will always be only a handful of users ->

Notifications You must be signed in to change notification settings

KIMARINELSON77109/CHEAPOMAIL

Repository files navigation

CHEAPOMAIL

CheapoMail provides a simple messaging system that only sends mail to other CheapoMail users. This obviously isn't very scalable but CheapoMail doesn't need to be as there will always be only a handful of users.

FEATURES

ADDING A USER

To simplify things for this assignment, users can only be added by an administrator, there is no feature for new users to self-sign up. An administrator logs in and completes the new user form. Use regular expressions to ensure that passwords have at least one number and one letter, and one capital letter and are at least 8 characters long. The password MUST be hashed before being stored in the database. Also ensure the other fields are validated and that user inputs are escaped and sanitized.

USER LOGIN

A user goes to the login page and logs in. The system keeps track of the user using PHP sessions. Once logged in they are presented with the Home Screen which shows their recent messages which they can read and allows them to compose new messages.

USER LOGOUT

There will be a logout link/button which a user may click in order to logout of the system. When this is done the PHP Session should be destroyed and the user redirected to the login screen.

HOME SCREEN

The home screen allows a logged in user to see their 10 most recent messages. The list of messages should display the senders username, subject and date sent. There should also be a link/button to compose a new message.

COMPOSE AND SEND A MESSAGE

The compose message screen includes a form with "recipients", "subject" and "body" input fields. Once a message is completed the logged in user can click the send button to make the message go to all recipients (please use commas "," to separate recipients). Also ensure the input fields are validated and that user inputs are escaped and sanitized.

RECIEVE AND READ A MESSAGE

Each recipient of the message should see only messages sent to them on their home screen. Messages that have not been read are to be bold. When a message is clicked it will open and show the details of the message. These details should include the first and last name of the sender, the subject of the message, the body of the message and the date it was sent. The message opened is immediately "flagged" as being read and should no longer be bold on the home screen.

NO PAGE REFRESH

All new pages should load without browser refresh, in other words you will need to implement an AJAX based approach to loading new content into the browser.

About

CheapoMail provides a simple messaging system that only sends mail to other CheapoMail users. This obviously isn't very scalable but CheapoMail doesn't need to be as there will always be only a handful of users ->

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published