就算不能相同也是JAVAMAIL包的问题,它里面肯定进行了检验!
你可以试着重写它的!

解决方案 »

  1.   

    You can send mail to yourself, any question please reference to,
    http://www.csdn.net/expert/topic/547/547033.xml
      

  2.   

    You can send mail to yourself, any question please reference to,
    http://www.csdn.net/expert/topic/547/547033.xml
      

  3.   

    好象不是JAVAMAIL的事吧,是SMTP服务器发回来的信息,是SMTP服务器不准自己发给自己!!
    javax.mail.SendFailedException:  Sending  failed;  nested  exception  is:  javax.mail.SendFailedException:  Invalid  Addresses;  nested  exception  is:  javax.mail.SendFailedException:  550  :  Invalid  User,  it  is  the  same  as  the  mail  from  user
      

  4.   

    明白了,不是程序的原因,是我用的smtp.263.net服务器的原因,多谢各位大侠的指导。结账啦!