Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot send to an email with a space in the address

843830May 9 2003 — edited May 12 2003
Hi,
I have a process in an enterprise application that automatically notifies user groups if an exception occurs. However, my user group email is 'some group@someDomain.com'. This is causing the following exception:

[INFO,Default] error in DPWMailer: javax.mail.internet.AddressException: Illegal whitespace in address in string ``'some group@someDomain.com'''
[ERROR,Default] javax.mail.internet.AddressException: Illegal whitespace in address in string ``'some group@someDomain.com'''
[ERROR,Default] at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:837)
[ERROR,Default] at javax.mail.internet.InternetAddress.parse(InternetAddress.java:748)
[ERROR,Default] at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:61)
[ERROR,Default] at com.creativesolutions.ems.utils.ErrorMailer.<init>(ErrorMailer.java:47)


Does anyone have any suggestions on how to deal with this error?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2003
Added on May 9 2003
4 comments
628 views