Does this work?
MailHeaders mh = mail.getHeaders();
| mh.removeHeader("From");
| mh.addHeader("From", "someone(a)whereever.com");
Note that removeHeader wills remove all headers with a given name, but there are normally
only one called "From".
Mike.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977943#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...