问题:用JAVA MAIL发送邮件的时候报以下错误:
Mail server connection failed; nested expection is javax.MessagingException:
Can't send command to SMTP host;nested exception is:
java.net.SocketException:
Write failed: Broken pipe
解决:经search一番,发现最终的原因是抄送给了自己导致的,即from跟cc或bcc中的某个邮箱地址是一样.