Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail & Distribution Lists  RSS feed

 
Brian Voss
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to send an e-mail to a global distribution list in JavaMail but I can't find anything on how to set the address. Ive tried



but it gives me this exception

javax.mail.internet.AddressException: Illegal whitespace in address in string

Which I assume is because it's not a valid e-mail address. How do I go about doing this? Thanks!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!