How you "inject" the email to james ? Via SMTP ? Bye, Norman
2010/7/15 prakash <[email protected]>: > Hi, > > I'm using james.2.2.0 version. I'm try to send mail from james like > "[email protected]" on behalf of "[email protected]". > > I tried below ways, but none of them seems to work. I'm in missing > anything?. > > 1) InternetAddress sender = new InternetAddress(); > sender.setAddress("[email protected]"); > message.setSender(sender); > > 2) message.setHeader("FROM:","[email protected]"); > > 3) message.setHeader("X-Sender","[email protected]"); > > 4)message.setHeader("MAIL FROM:","[email protected]"); > > Any suggestions? > > Thanks, > Prakash. > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
