Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
Unknown SMTP host: smtp.gmail.com. 0. Getting the JavaMail API to Work. ...username: vinod827@gmail.com DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false javax.mail.MessagingException: Could not connect to SMTP host Unknown SMTP host for gmail. Sherif Shehab. Ranch Hand. Используется phpmailer, при отправке почты с сайта появлялась ошибка: SMTP Error: Could not connect to SMTP host. Поменял порт в настройках на 25, теперь ошибка следующая: SMTP Error: The following recipients failed: name@host.ru. 1) Unknown SMTP host: smtp.gmail.com - This error might occur if you do not have a valid internet connection. 2) Could not connect to SMTP host: smtp.gmail.com - If you face this error, first disable your firewall and try running the code, still if you face this issue, then check your Antivirus... java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect I am getting the following error: Exception in thread “main” javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587 } } this is my application . i am facing an exception which is "javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1"..... send me solution of this . ritesh thank you. If perhaps you don’t have a name in DNS, you can use an IP address directly as the hostname. Next try to telnet to the host on the port you need (this example is using TLS for gmail) and this is the error that i have: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.SocketException: Software caused connection abort: connect at Информация взята v3.kz |
загрузка...
|