Question

javax.email.internet error with invalid characters in email address

  • 10 June 2021
  • 1 reply
  • 39 views

Userlevel 1
Badge +1

The corresponding application message of the queue NOTIFICATION errors out with the following error when the recepient email address contains control characters (Ex : web­mas­ter@​minimax.​de) or umlauts (Ex: web­mas­ter@kältetechnik.​de). 

Error while sending data… Caused by : javax.mail.internet.AddressException: Domain contains control or whitespaces

However, lot of our customers have umlauts in their email addresses, and it’s not clear which javax package IFS users within the framework for email sending, and supports which RFC versions.

(Ex: is it javax.mail:mail  or com.sun.mail:javax.mail , etc)

Do we have a pre-defined set of characters which should be escaped (marked as invalid for use within IFS emails) or if there’s knows control character limitation (or double-byte character limitation)?


1 reply

Userlevel 4
Badge +10

That would be valuable for us to know too. We have had similar issues in the past. The most common though is Customer emails with a leading or trailing white space. I wrote some code to highlight these, so we could correct them manually.

Reply