मैं स्थानीय रूप से होस्ट किए गए PHP कोड के माध्यम से ईमेल भेजना चाहता हूं।PHP: स्थानीयहोस्ट में मेल भेजें
Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\...
मैं php.ini
फ़ाइल में चला गया और यह पहले से ही अच्छी तरह से विन्यस्त किया जा रहा है:
<?php
$email = "[email protected]";
$titre = "My subject";
$message = "Text message !";
mail($email, $titre, $message);
?>
मुझे इस कोड चलाने के लिए, मैं निम्नलिखित त्रुटि मिलती है।
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
मैं इसे कैसे ठीक कर सकता हूं?
धन्यवाद
आप नहीं स्थानीय होस्ट जैसे 'पर, स्थानीय होस्ट से मेल भेज सकते कुछ अन्य smtp कॉन्फ़िगर करें:, गूगल याहू ...' –
"MailServer से कनेक्ट करने में विफल रहा है" ... आप PHP के लिए कॉन्फ़िगर किए से कनेक्ट करने के स्थानीयहोस्ट पर एक मेलसर, पोर्ट 25. क्या आपने ऐसे मेलसर्वर को स्थापित किया है? – eis
आपकी चल रही प्रणाली क्या है? –