This commit is contained in:
Julio Cesar Laura Avendaño
2018-06-26 13:09:00 -04:00
parent a9cd348a28
commit b0dcc51fc2
2 changed files with 6 additions and 32 deletions

View File

@@ -1375,26 +1375,5 @@ class EmailServer
}
}
/**
* Define the value for MESS_LABEL
*
* @param string $engine, can be PHPMAILER|MAIL
* @param string $senderAccount, related to the MESS_ACCOUNT
* @param string $senderEmail, related to the MESS_FROM_MAIL
*
* @return string
*/
public static function getMessLabel($engine = 'PHPMAILER', $senderAccount = '', $senderEmail = '')
{
$messLabel = $senderEmail;
if (empty($senderAccount) && $engine === 'MAIL') {
$senderAccount = 'Mail (PHP)';
}
if (empty($senderEmail)) {
$messLabel = $senderAccount;
}
return $messLabel;
}
}