Monday, November 26, 2007 01:10 PM
In your java code -- you need to set the 'return path' variable -- so when someone replies, it goes where you want it to go, and not necessarily back to you. This is distinct from the from_name and from_address, but will default to from_address if not set.
To do this, we use the following code:
String return_path = "email@example.com";
Properties systemSettings = System.getProperties();
Session session = Session.getDefaultInstance(systemSettings,null);
MimeMessage message = new MimeMessage(session);
...set all fields for the message...
hope this helps.