Meaningless Drivel is fun!*
The moose likes Other JSE/JEE APIs and the fly likes Group Email support in java mail 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 "Group Email support in java mail" Watch "Group Email support in java mail" New topic
Author

Group Email support in java mail

Sathwik Raju
Greenhorn

Joined: Jun 02, 2005
Posts: 4
Hi,

Does javamail support group addresses ? I've got few groups created in outlook like *xxxGroup where few email addresses were added to the group. I would like to use this group name instead of actual email addresses in java mail.
I am aware that every group will have smtp email address but I do not want to use smtp address and would like use the group name as it is. Is javamail api capable of finding email addresses in the group ?

Can any one tell whether javamail supports this ?

Thanks in advance
Sathwik
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18132
    
    8

That is something that you could try out fairly easily, isn't it?
Sathwik Raju
Greenhorn

Joined: Jun 02, 2005
Posts: 4
Thanks Paul,

I already tried but didnt work. May be I have to frame my question whether there is any solution to pick email addresses from the group if javamail doesnt support this ?

Regards,
Sathwik
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

JavaMail supports any address that is RFC822 compliant (assuming you are using an SMTP transport?). If you are connecting to the server where the distribution list is defined (if indeed they are defined on the server and not in an MUA like Outlook) then this should work. What goes wrong? Do you get a AddressException? Or does the server complain that the address is unknown?
[ July 06, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Group Email support in java mail
 
Similar Threads
Problem with Java Mail
Sending mail with two "@" in address
emailing
Problem sending mails when from-email-address is different from from-smtp-server
Using JAVAMAIL