2012-10-22 12 views
5

मैं 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 

जहां तक ​​मुझे पता है कर रहा हूँ, वहाँ कोई ठीक है इसके लिए पीएआर या पीईआर स्क्रिप्ट के निर्माता उन्हें ठीक करते हैं। मैं सोच रहा हूं कि वैकल्पिक एसएमटीपी पुस्तकालय लोग किस प्रकार उपयोग करते हैं, या सिर्फ एसएमटीपी के माध्यम से जीमेल के माध्यम से मेरी स्क्रिप्ट से ई-मेल देने के लिए मैं क्या कर सकता हूं। मैं खिड़कियों का उपयोग कर रहा हूं, अगर यह किसी भी मदद की है।

धन्यवाद।

+1

इस स्टैक ओवरफ़्लो को देखें। http://stackoverflow.com/questions/7114222/what-is-wrong-with-this-php-script-to-send-mail-using-pear-mail –

+0

यह फ़ोरम पोस्टिंग भी देखें। http://forums.phpfreaks.com/topic/255144-pear-mail-problems/ –

+0

और यहां एक पोस्टिंग है जिसमें @ @ को प्रीपेड करके समाधान शामिल है। ऐसा लगता है कि कुछ php4 उपयोग है यह php5 के साथ बहुत अच्छा नहीं है और इसे बदला नहीं गया है। http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –

उत्तर

1

कृपया PHP मेलर लाइब्रेरी का उपयोग करें। यह आपको PHP में किसी भी ईमेल से संबंधित समस्या को हल करने में मदद करेगा।

बाद ज़िप प्रारूप में phpmail पुस्तकालय http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

की डाउनलोड लिंक पुस्तकालय उपलब्ध है।

कृपया ज़िप निकालने के बाद परीक्षण फ़ोल्डर की खोज करें। यह आपको पुस्तकालय का उपयोग करने का तरीका दिखाएगा।

आप ईमेल संचार के लिए जीमेल का उपयोग कर

धन्यवाद के लिए link उल्लेख कर सकते हैं!