Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

726 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