php - [Zend Framework 1]Send mail using gmail -


वह मेरा कोड है:

  $ config = array ('ssl' = & gt; 'tls', 'port' = & gt; 587, 'auth' = & gt; 'लॉगिन', 'उपयोगकर्ता नाम' = & gt; 'test@gmail.com', 'password' = & gt; 'test'); $ Mail = नया Zend_Mail ('UTF-8'); $ परिवहन = नया Zend_Mail_Transport_Smtp ('smtp.gmail.com', $ config); $ मेल & gt; setBodyHtml ( 'परीक्षण'); $ मेल- & gt; सेटफ्रम ('test@gmail.com', 'थ्रथ'); $ मेल- & gt; एड-टा ('test@mail.com', 'thr'); $ मेल & gt; setSubject ( 'परीक्षण'); $ मेल & gt; भेजने ($ परिवहन);   

लेकिन एक त्रुटि संदेश है:

सॉकेट खोल नहीं सका

मैं ओरेकल के साथ सेंसोस 6.5 x86_x64 न्यूनतम का उपयोग करता हूं VM VirtualBox।

क्या आप 465 में बंदरगाह बदलने की कोशिश कर सकते हैं? < / html>

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -