Two Laptop Bag*
The moose likes Other JSE/JEE APIs and the fly likes Fetching all email Ids from a parent/group Id Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Fetching all email Ids from a parent/group Id" Watch "Fetching all email Ids from a parent/group Id" New topic
Author

Fetching all email Ids from a parent/group Id

arien mascarenhas
Greenhorn

Joined: Nov 17, 2011
Posts: 3
Hi all;
I was wondering if is there any way by which one would be able to fetch all email Ids which are grouped under some separate parent id.
To make it more clear,Suppose if i have one HR id like "hr@example.com" and all my employees comes under that id.So if i send an email to "hr@example.com" it gets received by all those who are entitled to get that.
Now my requirement is to get all those entitled email ids to whom sent mails are suppose to be received sent by parentid "hr@example.com".If somebody has already done this before by javamail or any other api then please share your
experiences or just some suggestions for by any means it can be achievable.

Thanks;
Ajay Padvi
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Why not drop a mail to HR@example.com and ask them who are all the receipient of this mail?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Arien, welcome to the Ranch!

Akhilesh Trivedi wrote:Why not drop a mail to HR@example.com and ask them who are all the receipient of this mail?

I think you misunderstand. As I understood, HR@example.com is a distribution group or something similar. It isn't a real email box, but emails sent to that email address are automatically sent to all members of that group. Sending an email to HR@example.com would cause this email to be sent to all group members. You can't expect those to reply back; some may not care, some may not understand, and some may even no longer be active.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
arien mascarenhas
Greenhorn

Joined: Nov 17, 2011
Posts: 3
Akhilesh Trivedi wrote:Why not drop a mail to HR@example.com and ask them who are all the receipient of this mail?


Probably i was not make able to make a point but again as only those having an access to,can send a mail to group ids..I dont want to drop any mail to hr@example.com.
My parent id is hr@example.com or say any other,and i just want to see who all are the other recipients if somebody sends mail to that id and it got received by us all.

The Question is not related to any organization,If it would have;i could have just ask HR;s or owner of any other groups to give me a list of recipients as per your suggestions before posting it into forum.
Thanks;



arien mascarenhas
Greenhorn

Joined: Nov 17, 2011
Posts: 3
Rob Spoor wrote:Arien, welcome to the Ranch!

Akhilesh Trivedi wrote:Why not drop a mail to HR@example.com and ask them who are all the receipient of this mail?

I think you misunderstand. As I understood, HR@example.com is a distribution group or something similar. It isn't a real email box, but emails sent to that email address are automatically sent to all members of that group. Sending an email to HR@example.com would cause this email to be sent to all group members. You can't expect those to reply back; some may not care, some may not understand, and some may even no longer be active.

Thank you Rob for your reply
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
arien mascarenhas wrote:

Probably i was not make able to make a point but again as only those having an access to,can send a mail to group ids..



Do you mean only specific person can drop a mail to the group-id?


arien mascarenhas wrote:

My parent id is hr@example.com or say any other,and i just want to see who all are the other recipients if somebody sends mail to that id and it got received by us all.



Where is the sender from? Is he inside or outside the example.com?
 
wood burning stoves
 
subject: Fetching all email Ids from a parent/group Id
 
Similar Threads
How to get Email ids from outlook
2nd Level cache eviction not cascading
mailing list
bulk mail and bulk sms
How to pipe emails to a java file and read?