[jboss-dev-forums] [Design of JBoss Collaboration Server] - Re: Unable to directly manipulate the FROM address in a Mail
mikezzz
do-not-reply at jboss.com
Thu Oct 12 13:21:52 EDT 2006
Does this work?
MailHeaders mh = mail.getHeaders();
| mh.removeHeader("From");
| mh.addHeader("From", "someone at 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#3977943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977943
More information about the jboss-dev-forums
mailing list