Not sure if this is possible. We send emails in our Spring Boot application, using MessageHelper we set the FROM. However, when the email is received we see a different from in the mail client.
So I can understand why, but we were hoping it might be possible to show a different value.
We use Gmail as the sender and have a Gmail account that the emails get sent from, so it has an email address that we will call [email protected] We use that address in the
[email protected]
In the code we set the From via either MimeMessage or MimeMessageHelper, but in the end they update the same MimeMessage instance.
messageHelper.setFrom("[email protected]");
message.setFrom("[email protected]");
If the message gets sent and looking at the recipients mail client it show in the From column "[email protected]". But we want it to show [email protected]
I know technically the email message is sent from the [email protected] and in the headers it can show that, but for the UI we want to show [email protected]