Skip to content

[Mailer] Use idn encoded address otherwise Brevo throws an error #51808

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

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

etlam
Copy link
Contributor

@etlam etlam commented Oct 2, 2023

Q A
Branch? 6.4 for features
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT

We have to use the encoded email address in case of special character domains like 'kältetechnik-xyz.de' otherwise brevo fails with 400 error.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.4 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@OskarStark
Copy link
Contributor

Can you please add a testcase? Thank you

@symfony symfony deleted a comment from carsonbot Oct 2, 2023
@etlam
Copy link
Contributor Author

etlam commented Oct 3, 2023

@OskarStark Tests are added and fix is also contributed to the new Brevo transport.
I can not reproduce this one failing unit test locally, what am I doing wrong and do I have to fix it?

As far as I understand the test, it should not fail after doing changes to brevo or sendinblue.

@OskarStark
Copy link
Contributor

OskarStark commented Oct 3, 2023

That's caused by another PR I guess.

cc @StaffNowa

@StaffNowa
Copy link
Contributor

StaffNowa commented Oct 3, 2023

That's caused by another PR I guess.

cc @StaffNowa

@OskarStark I think it is not the same case as nullable transport.

@etlam as I see your PR it is about brevo API, but why do you edit another API? Is it the same company?

@OskarStark
Copy link
Contributor

@etlam you can ignore the failing test case.

@OskarStark I think it is not the same case as nullable transport.

Yes, but AFAIR you had a PR regarding null transport, and this PR is failing, can you please have a look? Thanks

@etlam as I see your PR it is about brevo API, but why do you edit another API? Is it the same company?

Yes it is!

@etlam
Copy link
Contributor Author

etlam commented Oct 3, 2023

@etlam as I see your PR it is about brevo API, but why do you edit another API? Is it the same company?

In 2023 Sendinblue changed its name to Brevo.

StaffNowa added a commit to StaffNowa/symfony that referenced this pull request Oct 3, 2023
@StaffNowa
Copy link
Contributor

@OskarStark I am running tests now with #51830, and we will see if it helps or not )

@OskarStark OskarStark changed the title [FIX] Use idn encoded address otherwise brevo throws an error [FIX] Use idn encoded address otherwise Brevo throws an error Oct 3, 2023
@OskarStark OskarStark changed the title [FIX] Use idn encoded address otherwise Brevo throws an error [Mailer] Use idn encoded address otherwise Brevo throws an error Oct 3, 2023
@fabpot
Copy link
Member

fabpot commented Oct 5, 2023

Thank you @etlam.

@fabpot fabpot merged commit c85f224 into symfony:6.4 Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants