Phew! This was due to two things in SMTPSender.send():

1) To, CC, BCC & From headers get set by calling the direct methods on MimeMessage. 
i.e.:
MimeMessage.addRecipients()
MimeMessage.setFrom()

I am now avoiding setting these headers again in the same way as was done for Subject. 
There was a big fat comment which I took to mean something like this, so that is fine 
now. BTW, I added the standard headers stuff, not here as indicated but to 
MailHeadersImpl when the headers are being loaded from the DATA stream, since they are 
also needed for incoming messages.

b) Removed a for loop that would call MimeMessage.addRecipient() (which takes an array 
of all recipients) once for each
recipient, meaning if you had four To recipients you would get four To headers with 
all four recipients in each.

Cheers,

Kab

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827097#3827097";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827097>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to