Wednesday, November 6, 2002 07:46 AM
An SMTP mail message has an "envelope" in addition to the message text. The "headers" are just part of the text, as far as SMTP is concerned. You could send a message with no "To:" header at all, as long as the recipients were specified in the SMTP envelope ("RCPT TO" field).
Typically mail clients will just assume you want to fill in the "To:" header with recipient addresses and then use those same addresses for the actual "RCPT TO" envelope field. But it doesn't have to work that way.
Maybe try Transport.send() or Transport.sendMessage(), where you supply the list of addresses as args? I assume this directly uses the args for the "RCPT TO" envelope field, and the javadoc for send() says "Send the message to the specified addresses, ignoring any recipients specified in the message itself.".