Thanks a lot.
I agree that setting a customized "Received" header is something like spam.
My business is some kind of chained business. The end user knows only about it's parent. He do not know that his parent is also customer of some other one.
That's why i need to send mail to end customer with some customized "Received" Header.
I tried to use addHeader("received","My customized value").. but it just add a new header instead of replacing the default "Received" Header.
Is it possible with Java Mail API? It not then where should i do this setting.
As I said, the Received header is set by the mail server that receives
the message. You have no control over that. Unless, of course, you
control the mail server. You do, don't you?
Unless you're trying to perpetrate some sort of fraud, exposing the
fact that mail related to the parent business goes through your mail
servers to people who take the time to look at the Received header
doesn't seem like a big deal.