[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 415
  • Last Modified:

How to read a BCC adress from mail by using Java Mail

Hello,
     Does anyone know how to read the BCC address ?
for example you use a hotmail a/c to send a mail with a list of adresses in bcc, how do we read this bcc list if we receive this mail by using Java Mail ?


0
private99
Asked:
private99
1 Solution
 
objectsCommented:
Use:

Address[] bcc = message.getRecipients(Message.RecipientType.BCC);
0
 
ibroCommented:
Hi private99,
 i think this is not possible. This information is removed from the mailer that transferes the mail to the reciepent mail server.
That's the whole idea of bcc, isn't it :))
0
 
shyamkumarreddyCommented:
Hi Private

It is never Possible Possible Possible.
Yes Ibro Is right.
You cann't do it.

While Sending the mail bcc is not included in your headers.
It is not even visible to the sender in some mail clients.


Shyam
0
 
objectsCommented:
Absolutely correct, the above code will only work for getting bcc addresses BEFORE the email is sent.
The bcc address are not included in the DELIVERED mail so there is no way of accessing them.
0
 
private99Author Commented:
Thank you to all of you.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now