{"action":"created","issue":{"url":"https://api.github.com/repos/yzhang921/CBoard/issues/479","repository_url":"https://api.github.com/repos/yzhang921/CBoard","labels_url":"https://api.github.com/repos/yzhang921/CBoard/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/yzhang921/CBoard/issues/479/comments","events_url":"https://api.github.com/repos/yzhang921/CBoard/issues/479/events","html_url":"https://github.com/yzhang921/CBoard/issues/479","id":309679481,"number":479,"title":"使用企业邮箱定时任务发送邮件失败","user":{"login":"chenqu108","id":34977580,"avatar_url":"https://avatars2.githubusercontent.com/u/34977580?v=4","gravatar_id":"","url":"https://api.github.com/users/chenqu108","html_url":"https://github.com/chenqu108","followers_url":"https://api.github.com/users/chenqu108/followers","following_url":"https://api.github.com/users/chenqu108/following{/other_user}","gists_url":"https://api.github.com/users/chenqu108/gists{/gist_id}","starred_url":"https://api.github.com/users/chenqu108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenqu108/subscriptions","organizations_url":"https://api.github.com/users/chenqu108/orgs","repos_url":"https://api.github.com/users/chenqu108/repos","events_url":"https://api.github.com/users/chenqu108/events{/privacy}","received_events_url":"https://api.github.com/users/chenqu108/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-29T09:18:32Z","updated_at":"2018-03-31T04:06:51Z","closed_at":null,"author_association":"NONE","body":"Please follow the below instructions to create a new system bug, otherwise, we can't help you effectively.(请严格遵循下列格式创建系统Bug主题，否则我们可能很难有效帮助到你)\r\n\r\n- What steps will reproduce the problem?（该问题的重现步骤是什么？）\r\n    使用定时任务\r\n- What is the expected output? What do you see instead?（你期待的结果是什么？实际看到的又是什么？）\r\n    使用企业邮箱发送定时任务成功，实际发送失败。\r\n- What version of the product are you using? On what operating system?（你正在使用产品的哪个版本？在什么操作系统上？）\r\n    CBoard -0.4    windows操作系统\r\n- Please provide any additional information below.（如果有的话，请在下面提供更多信息。）\r\norg.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.exmail.qq.com:465\r\n at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)\r\n at org.apache.commons.mail.Email.send(Email.java:1448)\r\n at org.cboard.services.MailService.sendDashboard(MailService.java:152)\r\n at org.cboard.services.job.JobService.sendMail(JobService.java:90)\r\n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n at java.lang.reflect.Method.invoke(Method.java:498)\r\n at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)\r\n at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)\r\n at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:724)\r\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)\r\n at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\r\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)\r\n at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656)\r\n at org.cboard.services.job.JobService$$EnhancerBySpringCGLIB$$ccb29e67.sendMail(<generated>)\r\n at org.cboard.services.job.MailJobExecutor.execute(MailJobExecutor.java:23)\r\n at org.quartz.core.JobRunShell.run(JobRunShell.java:202)\r\n at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)\r\n Caused by: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out\r\n at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2304)\r\n at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2031)\r\n at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)\r\n at javax.mail.Service.connect(Service.java:386)\r\n at javax.mail.Service.connect(Service.java:245)\r\n at javax.mail.Service.connect(Service.java:194)\r\n at javax.mail.Transport.send0(Transport.java:253)\r\n at javax.mail.Transport.send(Transport.java:124)\r\n at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)\r\n ... 18 more\r\n Caused by: java.net.SocketTimeoutException: Read timed out\r\n at java.net.SocketInputStream.socketRead0(Native Method)\r\n at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)\r\n at java.net.SocketInputStream.read(SocketInputStream.java:171)\r\n at java.net.SocketInputStream.read(SocketInputStream.java:141)\r\n at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)\r\n at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)\r\n at java.io.BufferedInputStream.read(BufferedInputStream.java:265)\r\n at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)\r\n at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2284)\r\n ... 26 more\r\n下面是配置：(配置的密码什么的应该没有问题，以前用Python写过发送邮件的脚本，至今仍可正常使用)\r\nmail.smtp.host=smtp.exmail.qq.com\r\nmail.smtp.port=465\r\nmail.smtp.from=XXX.com    #企业邮箱全名\r\nmail.smtp.username=XXX.com    #企业邮箱全名\r\nmail.smtp.password=XXX    #第三方登录邮箱的客户端专用密码\r\nmail.smtp.ssl.checkserveridentity=false"},"comment":{"url":"https://api.github.com/repos/yzhang921/CBoard/issues/comments/377664122","html_url":"https://github.com/yzhang921/CBoard/issues/479#issuecomment-377664122","issue_url":"https://api.github.com/repos/yzhang921/CBoard/issues/479","id":377664122,"user":{"login":"junjiem","id":6293598,"avatar_url":"https://avatars3.githubusercontent.com/u/6293598?v=4","gravatar_id":"","url":"https://api.github.com/users/junjiem","html_url":"https://github.com/junjiem","followers_url":"https://api.github.com/users/junjiem/followers","following_url":"https://api.github.com/users/junjiem/following{/other_user}","gists_url":"https://api.github.com/users/junjiem/gists{/gist_id}","starred_url":"https://api.github.com/users/junjiem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junjiem/subscriptions","organizations_url":"https://api.github.com/users/junjiem/orgs","repos_url":"https://api.github.com/users/junjiem/repos","events_url":"https://api.github.com/users/junjiem/events{/privacy}","received_events_url":"https://api.github.com/users/junjiem/received_events","type":"User","site_admin":false},"created_at":"2018-03-31T04:06:51Z","updated_at":"2018-03-31T04:06:51Z","author_association":"COLLABORATOR","body":"@chenqu108 https://bbs.feng.com/read-htm-tid-8085390.html"}}
{"actor":{"display_login":"junjiem"}}