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 ; }
Returns the mail connection to be used to send the fax via mail .