How to mask the "address from" in email
843834Mar 16 2009 — edited Mar 17 2009Hi all,
I am having a problem in masking out the "from address" in email sent by
JavaMail program.
As our SMTP server does not use user id to authenticate, we must specify
our real email address in order to get failed delivery receipt from destination
email server (I know not all email server will do that)
I have specified the following codes in my program:
props.put("mail.smtp.dsn.notify", "SUCCESS,FAILURE ORCPT=rfc822;ray@test.com");
But our program does not receive any failed delivery receipt because of wrong
email address. (we use hotmail.com and yahoo.com in testing)
So I specified email address (ray@test.com) in
Message msg=new MimeMessage(mailsession);
msg.setFrom(new InternetAddress("ray@test.com"));
which seems useful in enabling the failed delivery receipt.
But we want to mask out the "ray@test.com" in email and replace with a
general email address.
Does any expert know how to do this?
Thanks for your attention,
Raymond