当前位置: 代码迷 >> Java Web开发 >> java mail怎么获取发送邮件情况的信息
  详细解决方案

java mail怎么获取发送邮件情况的信息

热度:65   发布时间:2016-04-17 01:19:29.0
java mail如何获取发送邮件情况的信息
DEBUG: setDebug: JavaMail version 1.4ea

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: trying to connect to host "smtp.126.com", port 25, isSSL false

220 126.com Anti-spam GT for Coremail System (126com[20081010])

DEBUG SMTP: connected to host "smtp.126.com", port: 25


EHLO zhengjia-d3b26a

250-mail

250-PIPELINING

250-AUTH LOGIN PLAIN

250-AUTH=LOGIN PLAIN

250 8BITMIME

DEBUG SMTP: Found extension "PIPELINING", arg ""

DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"

DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"

DEBUG SMTP: Found extension "8BITMIME", arg ""

DEBUG SMTP: Attempt to authenticate

AUTH LOGIN

334 dXNlcm5hbWU6

emhlbmdqaWFuYm8=

334 UGFzc3dvcmQ6

MTM2NjUyMQ==

235 Authentication successful

发送到:zhengjianbo4@foxmail.com

smtp://zhengjianbo@smtp.126.com----------class com.sun.mail.smtp.SMTPTransportQUIT

221 Bye


------解决方案--------------------
你是指要在邮件邮件发送后知道是否都成功发送到指定的收件人?
这个好像做不到.
------解决方案--------------------
顶顶枯顶!!!!!!!!!
------解决方案--------------------
http://download.csdn.net/user/chenggil10/all/1
  相关解决方案