Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Email from with name of person  RSS feed

 
Ed Carrington
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I send mail in my Java it always outputs the from address with the email address as it should where the email goes to the person and the person can reply back to the sender email address:

From: smith@place.com
To: jones@place.com
Subject: Hello World



I would like to display the name and also have their email address available so the person can reply back to it:

From: John Smith <smith@place.com>
To: jones@place.com
Subject: Hello World


My current email program:
Please advise.
[ October 05, 2008: Message edited by: Ed Carrington ]
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the obvious?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also try Commons Email, which is a wrapper around the Java Mail API - but with the methods you are looking for.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!