我正在尝试将 PEAR SMTP 库与 PHP 5.4 一起使用,但在使用它时遇到以下问题:
> 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
据我所知,在 PEAR 或 PEAR 脚本的创建者修复它们之前,无法解决此问题。我想知道人们使用哪些替代 SMTP 库,或者我可以做些什么来通过 SMTP 将电子邮件从我的脚本传递到 gmail。我正在使用windows,如果这有帮助的话。
谢谢你。