Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
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.

809 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