Skip to content

[18.0][FIX] mail_outbound_static: Use the function formataddr() from odoo.tools instead of email.utils. #45

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

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

BT-fgarbely
Copy link
Contributor

Until now, the function formataddr() from email.utils has been used.
This leads to a problem if the sender's name contains at least one comma and at least one special character (e.g. ü).

Simplified example:
formataddr('Schmid, Jürgen', '[email protected]') results in Schmid, Jürgen <[email protected]>.
That's wrong, because the mail servers interpret it as multiple addresses.

Now, we can use the function formataddr() from odoo.tools.

The same example:
formataddr('Schmid, Jürgen', '[email protected]') results in "Schmid, Jürgen" <[email protected]>.
That's correct.

@BT-fgarbely BT-fgarbely changed the title [FIX] mail_outbound_static: Use the function formataddr() from odoo.tools instead of email.utils. [18.0][FIX] mail_outbound_static: Use the function formataddr() from odoo.tools instead of email.utils. Apr 17, 2025
@BT-fgarbely BT-fgarbely force-pushed the 18.0-fix-formataddr branch from 66b7bf9 to b43cb53 Compare April 17, 2025 12:19
@BT-fgarbely BT-fgarbely force-pushed the 18.0-fix-formataddr branch from b43cb53 to 26c6cad Compare April 17, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant