Sto cercando di utilizzare la libreria PEAR SMTP con PHP 5.4 ma sto avendo i seguenti problemi quando lo si utilizza:PHP 5.4 e SMTP
> Strict Standards: Non-static method Mail::factory() should not be called statically in C:\xampp\htdocs\forgot.php on line 75
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Mail\smtp.php on line 365
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Net\SMTP.php on line 450
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Net\SMTP.php on line 451
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Mail\smtp.php on line 369
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Mail\smtp.php on line 249
Per quanto io sappia, non c'è alcuna correzione per questo fino a quando PEAR o i creatori degli script PEAR li risolvono. Mi chiedo che cosa utilizzino le librerie SMTP alternative o solo quello che posso fare per consegnare la posta elettronica dal mio script tramite SMTP a Gmail. Sto usando Windows, se questo è di qualche aiuto.
Grazie.
controllare questo overflow dello stack. http://stackoverflow.com/questions/7114222/what-is-wrong-with-this-php-script-to-send-mail-using-pear-mail –
controlla anche questo post sul forum. http://forums.phpfreaks.com/topic/255144-pear-mail-problems/ –
e qui c'è un post che contiene una soluzione anteponendo un @. sembra che ci sia un utilizzo di php4 questo non è molto bello con php5 e non è stato modificato. http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –