Cannot send to an email with a space in the address
843830May 9 2003 — edited May 12 2003Hi,
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?