green.reptile
سه شنبه 21 شهریور 1391, 16:34 عصر
باسلام
بنده جهت ارسال خبرنامه در نظر داشتم تا ایمیل ها رو از طریق سرور جیمیل ارسال کنم اما متاسفانه کامپوننت مورد نظر من (acymailing) با خطای زیر میشه:
Warning: fsockopen() [function.fsockopen (http://www.daliry.com/administrator/function.fsockopen)]: unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) in /home/azadeh/public_html/components/com_acymailing/inc/phpmailer/class.smtp.php on line 123
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
تنظیمات به این صورت هستش:
Server : smtp.gmail.com
Port :465
Secure Method:SSL
Keep Alive :Yes
Authentication:Yes
Username :greenreptile@gmail.com
Password :XXXXXXX
بمنظور تست اتصال هم کد زیر رو نوشتم:
<?php
$fp = fsockopen("www.google.com", 80, &$errno, &$errstr, 10); // work fine
if(! $fp)
echo "www.google.com - $errstr ($errno)<br>\n";
else
echo "www.google.com - ok<br>\n";
$fp = fsockopen("ssl://smtp.googlemail.com", 465, &$errno, &$errstr, 10); // NOT work
if(! $fp)
echo "ssl://smtp.gmail.com 465 - $errstr ($errno)<br>\n";
else
echo "ssl://smtp.gmail.com 465 - ok<br>\n";
$fp = fsockopen("tls://smtp.gmail.com", 587, &$errno, &$errstr, 10); // NOT work
if(! $fp)
echo "smtp.gmail.com 587 - $errstr ($errno)<br>\n";
else
echo "smtp.gmail.com 587 - ok<br>\n";
echo "<br />".phpinfo();
?>
که این کد هم همون خطا رو میده:
http://www.daliry.com/test/connect.php
پشتیبانی هاست ایران هم اعلام کرده که پورت 465 outbound باز هستش
(متاسفانه سرور ssh روبسته و نمیتونم با puty تست بگیرم واسه telnet و تست بازبودن پورت ) واسه همین این کد رو نوشتم:
<?php
$fp = fsockopen('127.0.0.1', 465, $errno, $errstr, 5);
if (!$fp) {
echo "port 465 is closed or blocked";
} else {
// port is open and available
echo "port 465 is open";
fclose($fp);
}
?>
و نتیجه :
http://www.daliry.com/test/port.php
مشکل از چی میتونه باشه؟
(لازم به ذکره که با همین تنظیمات نرم افزار تحت ویندوز groupmail5 کار میکنه و مشکلی نداره)
بنده جهت ارسال خبرنامه در نظر داشتم تا ایمیل ها رو از طریق سرور جیمیل ارسال کنم اما متاسفانه کامپوننت مورد نظر من (acymailing) با خطای زیر میشه:
Warning: fsockopen() [function.fsockopen (http://www.daliry.com/administrator/function.fsockopen)]: unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) in /home/azadeh/public_html/components/com_acymailing/inc/phpmailer/class.smtp.php on line 123
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
تنظیمات به این صورت هستش:
Server : smtp.gmail.com
Port :465
Secure Method:SSL
Keep Alive :Yes
Authentication:Yes
Username :greenreptile@gmail.com
Password :XXXXXXX
بمنظور تست اتصال هم کد زیر رو نوشتم:
<?php
$fp = fsockopen("www.google.com", 80, &$errno, &$errstr, 10); // work fine
if(! $fp)
echo "www.google.com - $errstr ($errno)<br>\n";
else
echo "www.google.com - ok<br>\n";
$fp = fsockopen("ssl://smtp.googlemail.com", 465, &$errno, &$errstr, 10); // NOT work
if(! $fp)
echo "ssl://smtp.gmail.com 465 - $errstr ($errno)<br>\n";
else
echo "ssl://smtp.gmail.com 465 - ok<br>\n";
$fp = fsockopen("tls://smtp.gmail.com", 587, &$errno, &$errstr, 10); // NOT work
if(! $fp)
echo "smtp.gmail.com 587 - $errstr ($errno)<br>\n";
else
echo "smtp.gmail.com 587 - ok<br>\n";
echo "<br />".phpinfo();
?>
که این کد هم همون خطا رو میده:
http://www.daliry.com/test/connect.php
پشتیبانی هاست ایران هم اعلام کرده که پورت 465 outbound باز هستش
(متاسفانه سرور ssh روبسته و نمیتونم با puty تست بگیرم واسه telnet و تست بازبودن پورت ) واسه همین این کد رو نوشتم:
<?php
$fp = fsockopen('127.0.0.1', 465, $errno, $errstr, 5);
if (!$fp) {
echo "port 465 is closed or blocked";
} else {
// port is open and available
echo "port 465 is open";
fclose($fp);
}
?>
و نتیجه :
http://www.daliry.com/test/port.php
مشکل از چی میتونه باشه؟
(لازم به ذکره که با همین تنظیمات نرم افزار تحت ویندوز groupmail5 کار میکنه و مشکلی نداره)