Merge branch 'release/1.10.0' into develop
Move test scripts into sub folder.
Create a test script for sending a single email.
#776 Update the example config file to include mail settings.
Also, space out some of those lines whilst you're at it ;)
#776 Create a new bb_mail_sender file to contain the code for actually sending an email.
#776 Create a bb_notification_handler file to contain the logic for triggering the email notifications.
Not quite sure where this is going yet, but I think it would end up being the main logic for handling all notifications...
#776 Import the bb_mail_sender file into the main app.
#776 Remove that import again as it's not actually needed there ;) .
Just made it do what I needed to didn't I.
#776 New method for getting notification preferences for a user.
New method for getting email address for a user.
#776 New interface methods for getting user notification preferences, and getting user email address.
#776 Move creation of server instance into the method so that it is called each time the method is called.
Don't understand why this didn't work which is annoying but it works now...
#776 Add imports.
#776 Method which is called by main app when notifications need to be sent for a user. It manages the whole process.
#776 Method to get the list of notification preferences for that user and put them into a list that can be iterated over by the notification sender.
#776 Obviously didn't need this here...
#776 Method to actually send an email notification once it's been identified that it needs to be sent by the main notification sender method.
#776 Add log.debug lines.
#776 Add default from address to example config file.
#776 Import the notification handler into the main app.