Send Newsletter

<<Back to Main Menu

Description:
Processes a Send Newsletter Form to send an email to all users.

Accessible by:
Managers

Accessed from:
Send Newsletter Form

Input parameters:
Message

Output:
List of all users emailed, or error message for all that failed to send
Pseudo Code:
get/create session
if ('usertype' param in the session == 'm') {
   get user email addresses, names and titles from the database
   for each user {
      send email to the user
      display error message if email failed to send
      display success message if email was successful
   }
   
}
else {
   display error message that user must be a manager
}