function _email_verify_read_all_lines in Email Verify 7.2
Read response from SMTP server, multiline compatible.
Parameters
string $connect: The connection response string from the server.
bool $debugging_mode: Whether to collect debugging information or not.
array $debugging_text: An array of strings, each of which are a line of debugging information.
string $date_time_format: The data and time format to use for the debugging information.
Return value
string The response from the server, formatted for use by this module.
1 call to _email_verify_read_all_lines()
- _email_verify_check_internal in ./
email_verify.inc - Checks the email address for validity.
File
- ./
email_verify.inc, line 817 - Checks the email address for validity.
Code
function _email_verify_read_all_lines($connect, $debugging_mode, array &$debugging_text, $date_time_format) {
if ($debugging_mode) {
$debugging_text[] = t('Reading all lines of the connection response (!date_time).', array(
'!date_time' => format_date(time(), $date_time_format),
));
}
$result = '';
do {
$line = _email_verify_read_line($connect, $debugging_mode, $debugging_text, $date_time_format);
$result .= $line['line'];
} while ($line['next_char'] == '-');
if ($debugging_mode) {
$debugging_text[] = t('Done reading all lines of the connection response. The result was: "%result" (!date_time).', array(
'%result' => $result,
'!date_time' => format_date(time(), $date_time_format),
));
}
return $result;
}