मैं PHP 5.4 के साथ नाशपाती एसएमटीपी लाइब्रेरी का उपयोग करने की कोशिश कर रहा हूँ, लेकिन मैं निम्नलिखित समस्याएं आ रही हैं यह का उपयोग करते समय:पीएचपी 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
जहां तक मुझे पता है कर रहा हूँ, वहाँ कोई ठीक है इसके लिए पीएआर या पीईआर स्क्रिप्ट के निर्माता उन्हें ठीक करते हैं। मैं सोच रहा हूं कि वैकल्पिक एसएमटीपी पुस्तकालय लोग किस प्रकार उपयोग करते हैं, या सिर्फ एसएमटीपी के माध्यम से जीमेल के माध्यम से मेरी स्क्रिप्ट से ई-मेल देने के लिए मैं क्या कर सकता हूं। मैं खिड़कियों का उपयोग कर रहा हूं, अगर यह किसी भी मदद की है।
धन्यवाद।
इस स्टैक ओवरफ़्लो को देखें। http://stackoverflow.com/questions/7114222/what-is-wrong-with-this-php-script-to-send-mail-using-pear-mail –
यह फ़ोरम पोस्टिंग भी देखें। http://forums.phpfreaks.com/topic/255144-pear-mail-problems/ –
और यहां एक पोस्टिंग है जिसमें @ @ को प्रीपेड करके समाधान शामिल है। ऐसा लगता है कि कुछ php4 उपयोग है यह php5 के साथ बहुत अच्छा नहीं है और इसे बदला नहीं गया है। http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –