code: protected Connection<MailResourcesHolder> getMailConnection()
      {
          Connection<MailResourcesHolder> mailConnection=null;
          if(this.usePersistentConnection)
          {
              synchronized(this)
              {
                  if(this.connection==null)
                  {
                      //create new connection
                      this.connection=this.createMailConnection();
                  }
              }
              
              //get connection
              mailConnection=this.connection;
          }
          else
          {
              //create new connection
              mailConnection=this.createMailConnection();
          }
          
          return mailConnection;
      }
docs: Returns the mail connection to be used to send the fax
  via mail.
  
  @return  The mail connection