-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Name not handled in "reply to" and recipients #30
Comments
@paindaveine Unfortunately in my tests, adding the name property does not change the behaviour. It seems that it is not supported by Microsoft to set the Name implicitly. Can you confirm that? |
According to my tests, behavior is different if e-mail address is known by the Microsoft tenant or not. See this example:
First two are email addresses that are known by the sender tenant, either as redirect address ordirectly as a user : Without the fix, here is the content of to: section in the raw message:
You can see names are the ones of microsoft tenant if known, and copy of email address if not. With the fix, here is the content of to: section in the raw message:
You can see names are still of microsoft tenant if known, but this time the name explicitly added in recipients is used instead of email address if not known by the tenant. According to my tests, the fix corrects the usage of names for "external" addresses not known by the microsoft tenant of sender, but it changes indeed nothing for known addresses, as stated in original post. Anyway, many thanks for your code and explanation! |
What happened?
When couples (email, name) are provided in message, only email addresses are kept in the final message sent, except for e-mail addresses known by the tenant, for which the name known in tenant is used.
Seems that problem can be solved by adding one line
'name' => $address->getName(),
in function transformEmailAddress() of MicrosoftGraphTransport.phpHow to reproduce the bug
Send e-mail with recipient or "reply to" not known by the tenant
Package Version
1.3.0
PHP Version
8.2.11
Laravel Version
11.6.0
Which operating systems does with happen with?
macOS, Linux
Notes
No response
The text was updated successfully, but these errors were encountered: