RIGHT ON w@tt! You hit the nail on the head. The index and offset errors are thrown when the script has …
include_once ($_SERVER{‘DOCUMENT_ROOT’} . ‘/…/SMTP4PHP.php’);
SMTP4PHP.php is a new (to me) smtp mailer: Copyright © 2011 - 2012, Raul IONESCU [email protected], Bucharest, ROMANIA.
After giving up on ever getting phpmailer to work again I switched to this smpt mailer. With your suggestion, I searched for exception_error and found this …
L.33. Searching on ‘ion_er’;
function exception_error_handler($errno, $errstr, $errfile, $errline, $errcontext )
{ throw new ErrorException($errstr, $errno, 0, $errfile, $errline); }
also this …
L.36. set_error_handler(“exception_error_handler”);
Then searching on erro found three more relevant references …
-
Searching on ‘erro’
if($expectedResponse && (!preg_match(’/^’.$expectedResponse.’/S’, $smtpResponse)))
{ throw new Exception(‘Unexpected SMTP error! (SMTP command: "’.trim($smtpCommand).’" SMTP response: “’.$smtpResponse.’”)’,(preg_match(’/^(\d{3})/mSU’,$smtpResponse,$m) && is_array($m) && isset($m[0]))?($m[0]):(NULL)); } -
if(empty($this->smtpConnect)) { throw new Exception(‘SMTP connection error!’.($errstr)?(’ (’.$errstr.’)’):(’’)); }
-
if(!stream_socket_enable_crypto($this->smtpConnect, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { throw new Exception(‘Unexpected TLS encryption error!’); }
It appears, to my untrained eyes, that the exceptions of concern are related to smtp commands, connections, or encryption. I have no idea how the errors (in my main script) could be associated with these smtp issues. The errors occur in the following line of my main:
$kvp = preg_split ("/[\s,]+/", $buffer);
$a["$kvp[1]"] = $kvp[3] . " " . $kvp[4] . " " . $kvp[5] . " " . $kvp[6] . " " . $kvp[7] . " " . $kvp[8];
Any suggestions on how to proceed?
Thanks for getting me over this huge bump in the road.
usit