• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.mail Sender's Name

 
Lou Pelagalli
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Our e-mail client is Microsoft Outlook 2000.
My task in the application we are building is to send an e-mail when certain errors are found. I have that accomplished.
The problem is when I receive the e-mail under "From" is the sender's e-mail address, which is set in msg.setFrom(address).
So the Outlook "From" column shows "name@domain.com".
I would like the "From" column to show just the sender's name, but for tracking and e-mail problem solving we would also like to keep the sender's address.
So, the from column should show just the name, but when I click reply the e-mail sender's e-mail addres should be filled in.
Can someone please help me accomplish this?
Thanks,
Lou
 
Lou Pelagalli
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As frequently happens, I bang my head against the wall for a couple of hours, post the question, then five minutes later I find the answer myself.
InternetAddress(String address, String personal)
Construct an InternetAddress given the address and personal name.
Thank you for checking my post!
Lou
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!