玩CF点击进入频道会cf跳出errorMM Server Connection Fai…

18:01 提问
使用qq邮箱发送邮件出错Mail server connection failed
发送邮件失败,求解答
Exception in thread "main" org.springframework.mail.MailSendException: Mail serv nested exception is javax.mail.MessagingException: Except
nested exception is:
java.net.SocketTimeoutException: Read timed out. Failed messages: javax.mail.MessagingException: Except
nested exception is:
java.net.SocketTimeoutException: R message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Except
nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2202)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
at javax.mail.Service.connect(Service.java:295)
at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:501)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:421)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:307)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:296)
at cn.cherish.common.MailUtil.main(MailUtil.java:44)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2182)
... 8 more
代码如下:
public class MailUtil {
public static void main(String args[]) {
JavaMailSenderImpl senderImpl = new JavaMailSenderImpl();
// 设定mail server
senderImpl.setHost("smtp.qq.com");
senderImpl.setProtocol("smtp");
senderImpl.setUsername("");
senderImpl.setPassword("xxxxxxxxx");
senderImpl.setPort(465);
senderImpl.setDefaultEncoding("UTF-8");
// 建立邮件消息
SimpleMailMessage mailMessage = new SimpleMailMessage();
// 设置收件人,寄件人 用数组发送多个邮件
String[] array = new String[] {"",""};
mailMessage.setTo(array);
mailMessage.setFrom("");
mailMessage.setSubject("测试简单文本邮件发送!");
mailMessage.setText("测试我的简单邮件发送机制!!");
Properties prop = new Properties();
prop.put("mail.smtp.auth", "true");
prop.put("mail.smtp.timeout", "25000");
senderImpl.setJavaMailProperties(prop);
// 发送邮件
senderImpl.send(mailMessage);
System.out.println(" 邮件发送成功.. ");
按赞数排序
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!
自己回复我改用587端口就成功了
senderImpl.setPort(587);//587/465
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐cf选择模式时出现MM server connection failed 就退出了,登不上去_百度知道
cf选择模式时出现MM server connection failed 就退出了,登不上去
cf选择模式时出现MM server connection failed 就退出了,登不上去这是啥情况,重新下载了N次(不要给我说重装系统),急啊……
我有更好的答案
com/article/eeeeebc91a89a5.html.com/article/ee32b855eaf7f.html" target="_blank">http?st=2&net_type=&bd_page_type=1&os=0&rst=&word=serverconnectionFailed" target="_blank">http://jingyan.baidu.baidu.com/article/ee32b855eaf7f.html方法二<a href="http://jingyan://jingyan://jingyan.com/article/eeeeebc91a89a5.html?st=2&net_type=&bd_page_type=1&os=0&rst=&word=serverconnectionFailed这是我上网上给你找的.baidu方法一<a href="http.baidu,亲
还是不行啊
那就不知到了哎,
………………
弄了一上午了
你卸载了,重新装
装了一上午了
那就不知道了
采纳率:47%
为您推荐:
其他类似问题
&#xe675;换一换
回答问题,赢新手礼包&#xe6b9;
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。网易公司版权所有Scenarios: After installing mysql, mysql started to set the root user's password, the resulting error message: #. / Mysqladmin-uroot-p password &123456& Enter password: . / Mysqladmin: connect to server at 'localhost' failed error: 'Access denie
问题描述: 在eclipse中配置好runtime environment以后,想启动Tomcat调试一个Dynamic Web Project,跳出一个窗口报错内容如下: 'Starting Tomcat v6.0 Server at localhost ' has encountered a problem. Server Tomcat v6.0 Server at localhost failed to start. 窗口详细错误信息为:Server Tomcat v6.0 Server
在学习Servlet的时候,在练习一个项目的时候,不知道声明时候突然出现
Server Tomcat v7.0 Server at localhost failed to start.问题Server Tomcat v7.0 Server at localhost failed to start.出 现了这个问题,刚开始不知道怎么解决,百度跟谷歌了好长时间,也试过不少方法,像什么端口冲突,Activemq未启动啊,都无法解决,后来自己在看异常 堆栈的时候发现这样一句话The servlet
In the 32-bit platforms, MongoDB and prone to &mmap failed with out of memory& error, because 32-bit platform MongoDB database files are not allowed (cumulative total) of more than 2G, and 64-bit platforms do not have this restriction. Wanted th
1.main class 如下: public final class Bootstrap { //~ Static fields/initializers ============================================= private static final String SHUTDOWN = &SHUTDOWN&; private static final String RELOAD = &RELOAD&; //~ Instance
Query Analyzer, connect, authenticate using the &use windows authentication& Then, run: EXEC sp_password NULL, 'NewPassword', 'Sa' Enterprise Manager -& Instance Name -& Security -& Login -& Double-click to the right of SA -& Chan
# Mysql-uroot-p Enter password: ERROR ): Access denied for user 'root' @ 'localhost' (using password: NO) Use of online methods described in the user modify the root password: # Mysqladmin-uroot-p password 'newpassword' Enter password: mys
J2EE Web project in the development, testing process often involves the integration of code and test Web Container. Testing process is usually divided into: development, deployment, testing, modifying four links. Cumbersome to deploy part of which gr
My system is ubuntu6.06, recently into the freshly installed mysql mysql tool, there is always error: # Mysql-uroot-p Enter password: ERROR ): Access denied for user 'root' @ 'localhost' (using password: NO) Using the methods described in
J2EE Web project in the development, testing process often involves the integration of code and test the Web Container. Testing process is usually divided into: development, deployment, test, modify four links. Cumbersome to deploy part of which grea
Mysql installed in the terminal after input mysql, mysql Successful start, exit, and then enter mysqladmin-u root password XXXXX, the error: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user' root '@' localhost '(usin
Access denied for user''@ 'localhost' to database 18:00 I have Suse Linux 10.2 comes with a CD-ROM with the next Yast2 installed Mysql 5.0, installed after the terminal input mysql, mysql Successful start, exit, and then enter mysqladmin-u
JSP project to connect the database to do today, the result error, error reason: 'user' sa 'login failures. The user and the trusted SQL Server connection is not associated 'today on the online search for a long time or get it working, and finally th
linux mysql忘记密码的多种解决方法. 我的系统是ubuntu6.06,最近新装好的mysql在进入mysql工具时,总是有错误提示: # mysql -uroot -p Enter password: ERROR ): Access denied for user 'root'@'localhost' (using password: NO) 使用网上介绍的方法修改root用户的密码: # mysqladmin -uroot -p password 'newpas
我在我个人的开发环境中使用嵌入式jetty(查看jetty文档),以此来避免编译.部署等循环对时间的浪费.我使用jetty的时间并不长,但是他的易用性让我很喜欢.为了我的数据库连接池的活动连接,我需要建立起一套JNDI.这篇文章的目的就是让你学会在jetty下配置jndi. 下面是我的一个例子,这个例子我使用的是jetty-6.1.26 你可以通过这里下载jetty. 包括了如下jar包. lib jetty-x.x.xx.jar, jetty-util-x.x.xx.jar,servlet-a
Jetty is an open source, standards-based, full-featured server JAVA achieved. It Apache2.0 released under the agreement, so be free for commercial use and distribution. First in 1995, Jetty to benefit from a vast user community, there is a stable cor
1.1 Glassfish v3 Server Installation and Configuration 1.1.1 unzip and install the mkdir / opt / glassfish cd / opt / glassfish unzip / home/pkg/glassfish-v3-preview-b46.zip Start glassfish: / opt/glassfish/glassfishv3/bin/asadmin start-domain 1.1.2
&! - Start body -& from: http://docs.huihoo.com/jetty/1.html 1, all in all Jetty do you know, as we know it's Tomcat, like, Jetty is a free open source 100% pure Java, Http Server and Servlet container. Jetty has the following features: Fast and
EDITORIAL: Use the jetty has been a long time, it is a very good web containers and tools to share in this special jetty6 knowledge. Network, there are some information on the jetty, but it used outdated and does not have a systematic, resulting in a
Tomcat Server Structure diagram The document describes how to start Tomcat Server &Server& &Listener /& &GlobaNamingResources& &/GlobaNamingResources &Service& &Connector /& &Engine& &Logger /& &Realm /&
Source file (the file changes from Miller from) / * * Hash a variable to choose an upstream server. * * Copyright (C) Evan Miller * * This module can be distributed under the same terms as Nginx itself. * / # Include &ngx_config.h& # Include &ngx
Question 1: Use. Net2005 comes with SQL-Express connection is not on. Solution: 1. Network firewall to prevent 2. Default SQL-Express did not start the Sa account -& download the management studio express interface tools to manag
SQL Server connection in the four most common errors: 1. &SQL Server does not exist or access denied& This is the most complex, errors occur because more and more also needs to be checked more. Generally speaking, there are several possibilities
Query Analyzer, connect, authenticate using the &use windows authentication& Then, run: EXEC sp_password NULL, 'NewPassword', 'Sa' Enterprise Manager -& Instance Name -& Security -& Login -& Double-click to the right of SA -& Chan
Environment: Ubuntu Server 10.4 1. Install passenger sudo gem install passenger 2. Through the passenger install and configure nginx, nginx default will install to / opt / nginx under sudo passenger-install-nginx-module 3. Nginx startup script 1. To
Note nodejs now is not the stable version, api names are constantly changing, such as writeHead, before called sendHeader ... process.cwd () server path to the current process Test, visit: http://localhost:8080/fileserver.js You can see the contents
Visit the following exception occurs when the solution is up to the ASP.NET runtime environment IIS, the command is as follows: C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727& aspnet_regiis.exe-i Server Error in '/ portal' Application. Failed
applicationContext.xml which obviously has been configured persistenceManagerFactory, but still reported abnormal persistenceManagerFactory is required, seek expert answers. /** * $Revision: 1.0 $ * $Author: William Lim $ * $Date:
From: deep in the ship The document describes how to start the Tomcat Server &Server& &Listener /& &GlobaNamingResources& &/ GlobaNamingResources &Service& &Connector /& &Engine& &Logger /& &Realm /& &
The following are common under the Web / Application Server, in the end they are what? Name the full name of his organization / company official described Tomcat Apache Tomcat ASF straight-forward servlet container and Web server Jetty Jetty WebServe
Win7 64-bit SQL Server 2000 operating system installation issues encountered] [intelligent software solutions workshop CLSW Chen Liang (buttoning a shirt: ) http://clsw.blogcn.com/diary, .shtml 1,64-bit operating systems are not compa
Asp always do these days to see the information about php, today configured a little php + apache, configured according to the normal steps, you can not start apache, tips: &Cannot load C: / php/php5apache2.dll into server& &The requested o
Server Deployment - Haproxy I will install the latest package in my system. I use it as software solution of hardware F5. 1. Install haproxy download this file haproxy-1.4.15.tar.gz unzip the file & Tar zxvf haproxy-1.4.15.tar.gz move the file to wor
Server Deployment - nginx 1. Proxy configuration The configuration file is / etc / nginx / nginx.conf, but I can change another file: & Vi / etc / nginx / conf.d / easymarket.conf configuration files: log_format main '$ remote_addr - $ remote_user [$
JBoss 5 startup error out: org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser How to solve? The answer is to find an online project lib folder to delete the following three files: xml-apis.jar, xerces-2.4.0.jar, xercesImp
From: deep ship The document describes how to start the Tomcat Server &Server& &Listener /& &GlobaNamingResources& &/ GlobaNamingResources &Service& &Connector /& &Engine& &Logger /& &Realm /& &host&gt
1: Shuffle Error: Exceeded MAX_FAILED_UNIQUE_FETCHES; bailing-out Answer: Procedures which need to open multiple files for analysis, the system usually the default number is 1024 (you can see with the ulimit-a) is enough for normal use, but the progr
SSL-Explorer is an SSL VPN solution. This unique remote access solution that allows users and business partners using only a standard web browser can access from the external network security internal network resources. Software architecture: Standar
1, ready to work: openssl and nginx (Note the use of compiler option - with-http_ssl_module support ssl) 2, the root certificate new_ca.sh demoCA this script creates a directory and the root certificate file, followed by the signing of the certificat
Diagram of Tomcat Server The document describes how to start the Tomcat Server &Server& &Listener /& &GlobaNamingResources& &/ GlobaNamingResources &Service& &Connector /& &Engine& &Logger /& &Realm /& &l
1 Basics Samba (SMB is the acronym) is a network server for Linux and Windows f Samba for Windows and Linux that can be shared between the files is the same for Linux and Linux to but For sharing files betwee
Subversion to the next year, after a lot of really tasted the sweetness of Subversion, more concentrated development at that time, most developers do not make off-site development, they have been using Subversion svnserve server running version comes
Tomcat handling static resources due to the slow rate, so the first thought is that all static resources (JS, CSS, image, swf) that a separate server, HTTP server with a faster, where a selected nginx, nginx, compared apache, more lightweight, easier
公司原来的Mantis在个人的机器上,现在购置了服务器,迁移到Linux系统中,以下是手记 1.MySQL安装配置 1.1.安装 $sudo apt-get install mysql-server 1.2.配置 $mysql -uroot -p 输入root密码 建立用户 mysql&create user 'mantis'@'localhost' identified by 'mantis'; 建表 mysql&create database mantis default characte
1. 基本信息 hadoop 版本 hadoop-0.20.205.0.tar.gz 操作系统 ubuntu 2. 问题 在使用Hadoop开发初期的时候遇到一个问题. 每次重启系统后发现不能正常运行hadoop.必须执行 bin/hadoop namenode -format 进行格式化才能成功运行hadoop,但是也就意味着以前记录的name等数据丢失. 查询日志发现错误: 21:08:48,103 INFO org.apache.hadoop.hdfs.server.namenode.FS
1:Shuffle Error: Exceeded MAX_FAILED_UNIQUE_FETCHES; bailing-out Answer: 程序里面需要打开多个文件,进行分析,系统一般默认数量是1024,(用ulimit -a可以看到)对于正常使用是够了,但是对于程序来讲,就太少了. 修改办法: 修改2个文件. /etc/security/limits.conf vi /etc/security/limits.conf 加上: * soft nofile 102400 * hard nof
Suppose there is a master SWf named main.swf load a game called game.swf modules: 1. Main which will be game.swf loaded using the Loader in.; 2. In the game defined in the public function moveBall (speed: Number) method, us 3. In
Set, modify, reset mysql root password Overview: This article describes how to set up, modify, reset (if you do not care forget root password) mysql root password, and often I use the mysqladmin command, often appear similar to the following informat
Remember fedora7 document in accordance with the mysql installation step by step to the line, but in fedora 8 in there is a problem finally solved by the multi-search reason, to celebrate. I downloaded the latest version of mysql-5.0.45-linux-i686.ta
This is from the front of one of the most simple example of changes made to. The previous example is read from the configuration file content, and display. This example is to read the contents of the variable from the url and display. # Include &ngx_
Copyright (C) , All Rights Reserved.
版权所有 闽ICP备号
processed in 0.055 (s). 9 q(s)

我要回帖

更多关于 cf跳出 的文章

 

随机推荐