Solved

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

Posted on 2001-07-31
5
387 Views
Last Modified: 2013-11-24
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
Comment
Question by:private99
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6337140
Use:

Address[] bcc = message.getRecipients(Message.RecipientType.BCC);
0
 
LVL 3

Accepted Solution

by:
ibro earned 100 total points
ID: 6337232
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
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6337239
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
 
LVL 92

Expert Comment

by:objects
ID: 6339018
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
 

Author Comment

by:private99
ID: 6340979
Thank you to all of you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now