你的这个InternetAddress不是java标准库中的类,不看程序谁知道它是做什么用的?

解决方案 »

  1.   

    Parse the given sequence of addresses into InternetAddress objects. If strict is false, simple email addresses separated by spaces are also allowed. If strict is true, many (but not all) of the RFC822 syntax rules are enforced. In particular, even if strict is true, addresses composed of simple names (with no "@domain" part) are allowed. Such "illegal" addresses are not uncommon in real messages. Non-strict parsing is typically used when parsing a list of mail addresses entered by a human. Strict parsing is typically used when parsing address headers in mail messages.Parameters:addresslist - comma separated address stringsstrict - enforce RFC822 syntax
      

  2.   

    public static InternetAddress[] parse(java.lang.String s,
                                          boolean strict)
                                   throws AddressException
    意思就是如果strict如果为false,对你的地址限制就比较松,如果为true,只有RFC822 语法的才行。