This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Java Mail with name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Mail with name" Watch "Java Mail with name" New topic

Java Mail with name

Charles McGuire
Ranch Hand

Joined: Jan 18, 2005
Posts: 99
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 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.

Thanks in advance...!
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

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.
wood burning stoves
subject: Java Mail with name