In case you want to explicitly set the personal name for the sender, you need to do it while creating the email message.
Let's say you have the session mailSession
from the GlassFish Resource and you are creating a message mailMessage
Now you can set the from
attribute of the message:
mailMessage.setFrom(new InternetAddress(mailSession.getProperty("mail.from"), "Tom Tester"));
Read more here.