Solved

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

Posted on 2001-07-31
5
385 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

707 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

15 Experts available now in Live!

Get 1:1 Help Now