Tôi đang cố gắng để sử dụng thư viện PEAR SMTP với PHP 5.4 nhưng tôi đang gặp các vấn đề sau khi sử dụng nó:PHP 5.4 và 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
Theo như tôi biết, không có sửa chữa cho đến khi PEAR hoặc những người sáng tạo của các kịch bản PEAR sửa chúng. Tôi tự hỏi những gì các thư viện SMTP thay thế người sử dụng, hoặc chỉ là những gì tôi có thể làm để cung cấp e-mail từ kịch bản của tôi thông qua SMTP để gmail. Tôi đang sử dụng các cửa sổ, nếu đó là sự giúp đỡ nào.
Cảm ơn bạn.
kiểm tra tràn ngăn xếp này. http://stackoverflow.com/questions/7114222/what-is-wrong-with-this-php-script-to-send-mail-using-pear-mail –
cũng xem bài đăng trên diễn đàn này. http://forums.phpfreaks.com/topic/255144-pear-mail-problems/ –
và đây là bài đăng chứa giải pháp bằng cách thêm một @. nó xuất hiện có một số sử dụng php4 này không phải là rất tốt đẹp với php5 và đã không được thay đổi. http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –