Fix issue wtih non-ASCII characters in contact name not sending invoice
I had the same issue as #2 (closed), and was able to determine that the email addresses didn't contain the proper quotes around the contact name.
They were coming out as Test Québec <test@org.org>
but should actually be generated as "Test Québec" <test@org.org>
. This tiny patch adds the quotes and everything is hunky dory after.
Here are two scenarios
Character issues
- Set an organization as
Test Québec (ABC)
- Create Contribution pending
- View the Contribution and click Send Email
- Send the email and it will fail on validation errors
In this scenario, the email throws Validation failed for: Test Assoc Québec <someemail@example.org>
. You can see how there are extra spaces. Even if I removed the brackets it still happens, and it won't work until I remove the ```é````
Extra bracket
- Setup an organization with
test-assoc (ABC)
- Create Contribution pending
- View the contribution and click Send Email
- Add several recipients
The email is resolved as as <test-assoc (ABC) <someemail@example.org>
cc @bgm