DEBUG SMTP: Found extension "SIZE", arg "10485760"
DEBUG SMTP: Found extension "AUTH", arg "LOGIN"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 VXNlcm5hbWU6
ZGVuZ3NodWFuZ3lp
334 UGFzc3dvcmQ6
ODMwNzI2NzQ=
235 Authentication successful
DEBUG SMTP: use8bit false认证都已经通过了,就是不能发邮件怎么回事?
536 Error: file unable create. 无法创建文件. #1-010
QUIT
Sending the email to the following server failed : smtp.sohu.com:25
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.sohu.com:25
DEBUG SMTP: Found extension "AUTH", arg "LOGIN"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 VXNlcm5hbWU6
ZGVuZ3NodWFuZ3lp
334 UGFzc3dvcmQ6
ODMwNzI2NzQ=
235 Authentication successful
DEBUG SMTP: use8bit false认证都已经通过了,就是不能发邮件怎么回事?
536 Error: file unable create. 无法创建文件. #1-010
QUIT
Sending the email to the following server failed : smtp.sohu.com:25
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.sohu.com:25
现在用Express OutLook都要设置..."我的服务器要求省份验证"这个怎么用程序,而且从日志上看,我已经通过验证了.....为什么不行呢.....
props.put("mail.smtp.host", "smtp.sohu.com");
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.user", user);
props.put("mail.smtp.password", password);javax.mail.Authenticator auth = new javax.mail.Authenticator(){
protected javax.mail.PasswordAuthentication getPasswordAuthentication() {
return new javax.mail.PasswordAuthentication(user, password);
}
};Session mailSession = Session.getDefaultInstance(props,auth);