Index: phase3/includes/UserMailer.php
===================================================================
--- phase3/includes/UserMailer.php	(revision 75343)
+++ phase3/includes/UserMailer.php	(working copy)
@@ -127,6 +127,17 @@
 		}
 
 		if (is_array( $wgSMTP )) {
+			$found = false;
+			$pathArray = explode( PATH_SEPARATOR, get_include_path() );
+			foreach ( $pathArray as $path ) {
+				if ( file_exists( $path . PATH_SEPARATOR . 'Mail.php' ) ) {
+					$found = true;
+					break;
+				}
+			}
+			if ( !$found ) {
+				throw new MWException(  'PEAR mail package is not installed in ' . __METHOD__ );
+			}
 			require_once( 'Mail.php' );
 
 			$msgid = str_replace(" ", "_", microtime());
