Change
sender.setAddress("[email protected]");
to
sender.setAddress("[email protected]");
prakash wrote:
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.
--
//
\\ Ekaterina A. Davydenko
// HPC-1 Scientific Software Engineering Group
\\ Los Alamos National Laboratory
// PO Box 1663, MS B274
\\ Los Alamos, NM 87545
// phone: (505)665-1096
\\ email: [email protected]
//
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]