When sending mail, the "From" portion of the e-mail looks like this:
It used to work just fine but recently we started getting error messages. Specifically, this message:
When I change the parameter to remove the less than/greather than signs, the error stops, but that means we also had to drop "John Smith" from the string, and the parameter is now just JSmith@theDomain.com. The recipient doesn't know it is from John Smith, but simply JSmith.
About the same time we upgraded the JDK to Java 5. Does anyone know if the javax.mail api changed between 1.4 and 1.5? I can't find any reference if it has. We get our JVM from IBM, so it might be something they've changed.
JavaMail isn't part of the JRE, so changing the JRE shouldn't have any effect. The standard advice given for this sort of question is to turn on debugging and look at the conversation with the server, which will be dumped on your console. You can find instructions on how to do that in the JavaMail FAQ.