addHook('filter.smtp-credentials', 'FilterSmtpCredentials'); } /** * @param \RainLoop\Account $oAccount * @param array $aSmtpCredentials */ public function FilterSmtpCredentials($oAccount, &$aSmtpCredentials) { if ($oAccount instanceof \RainLoop\Account && \is_array($aSmtpCredentials)) { // Default: // $aSmtpCredentials['Ehlo'] = \MailSo\Smtp\SmtpClient::EhloHelper(); // // or write your custom php $aSmtpCredentials['Ehlo'] = 'localhost'; } } }