$smtp = Mail::factory('smtp', ...with
$smtp = new Mail();and the message correctly goes away.
$response = $smtp->factory('smtp', ...
Update: ...except this is wrong! :-(
On the other hand, the report of
8192: Assigning the return value of new by reference is deprecated in /usr/share/pear/Mail/smtp.php at 349appears to be real, but is also outside of my control. I downloaded the PEAR::Mail source code, and, sure enough, line 349 of Mail/smtp.php has
$this->_smtp = &new Net_SMTP(...The issue has now been reported several times over the past six years or so, and it sounds like it isn't being addressed so as to maintain compatibility with PHP 4. So, in this particular case, it sounds like the best route is to suppress the error. :-(