From 5aaf6b5bbd2cfc40993ef941880a0b9164a576fb Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Tue, 23 Oct 2012 12:19:29 -0400
Subject: [PATCH] Add SMTP connection wrapper

---
 include/pear/BUNDLE        | 11 +++++------
 include/pear/Mail/smtp.php |  9 +++++++++
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/include/pear/BUNDLE b/include/pear/BUNDLE
index 863d4d92b..22917abc2 100644
--- a/include/pear/BUNDLE
+++ b/include/pear/BUNDLE
@@ -1,7 +1,7 @@
-Log of pear packages shipped with osTicket.
+Log of pear packages bundled with osTicket
 
-* osTicket v1.7
------------------------------------------
+* osTicket v1.7.*
+===========================================================
  PEAR-1.9.4 - core class
  Mail-1.2.0
  Mail_Mime-1.8.5 
@@ -9,6 +9,5 @@ Log of pear packages shipped with osTicket.
  Net_Socket-1.0.10
  Auth_SASL-1.0.6
 
-
-    
-    
+-------- Changes ----------
+* Add connect() function to Mail/smtp.php
diff --git a/include/pear/Mail/smtp.php b/include/pear/Mail/smtp.php
index 52ea60208..75171891e 100644
--- a/include/pear/Mail/smtp.php
+++ b/include/pear/Mail/smtp.php
@@ -386,6 +386,15 @@ class Mail_smtp extends Mail {
         return $this->_smtp;
     }
 
+    /**
+     * Connection wrapper
+     *
+     *
+     */
+    function &connect() {
+        return $this->getSMTPObject();
+    }
+
     /**
      * Add parameter associated with a SMTP service extension.
      *
-- 
GitLab