 import UIKit
 import StaticTables
 import ContactsUI
+import MessageUI
 import ImageIO
 
-class SettingsViewController: JSMStaticTableViewController, JSMStaticPreferenceObserver, CNContactPickerDelegate, UITextFieldDelegate {
+class SettingsViewController: JSMStaticTableViewController, JSMStaticPreferenceObserver, CNContactPickerDelegate, UITextFieldDelegate, MFMailComposeViewControllerDelegate {
 
 	//! The shared preferences manager.
 	let preferences = PreferencesManager.sharedManager

		var support = JSMStaticSection(key: "support-1")
		support.headerText = NSBundle.mainBundle().displayName ?? "Melissa"
		self.dataSource.addSection(support)

		if let appStoreManager = AppStoreManager.sharedManager {
			let review = JSMStaticRow(key: "support.review")

        return false
    }

	// MARK: Mail compose controller delegate

	func mailComposeController(controller: MFMailComposeViewController, didFinishWithResult result: MFMailComposeResult, error: NSError?) {
		controller.dismissViewControllerAnimated(true, completion: nil)
	}
	
    // MARK: Utilities

	/// Refresh the various sections in the data source.
