Java Mail: Getting Bounced Messages To Go To An Address Different From The Sender
问题 I'm trying to get Java mail to send bounced email to a different address than the sender's address and not send the bounce message to the sender at all. So far I can't do either in a test program ( below ). The sender is "joe@acme.com". I want bounce messages to go and only go to "bounce@acme.com" I'm trying setting both the reply-to address and the Return-Path: header, but the bounces do not go to bounce@acme.com, only to joe@acme.com When looking at the header of the bounce message the