wood burning stoves
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
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 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.

Thanks in advance...!
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Java Mail with name
It's not a secret anymore!