Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Mailer] Throw a more specific exception when a BodyRendererInterface is needed but not configured#47049

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:6.2fromfabpot:mailer-more-specific-exception
Jul 24, 2022

Conversation

@fabpot
Copy link
Member

QA
Branch?6.2
Bug fix?no
New feature?yes
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRn/a

When aBodyRendereInterface is not configured, you get the following error message if sending aTemplatedEmail:

A message must have a text or an HTML part or attachments.

After this PR, you will get a better error message:

You must register a "Symfony\Component\Mime\BodyRendererInterface" when a "Symfony\Bridge\Twig\Mime\TemplatedEmail" instance has a text or HTML template set.

That will help debugging such issues.

@carsonbotcarsonbot added this to the6.2 milestoneJul 24, 2022
@derrabusderrabus changed the title[Mailer] Throw a more specific exception when a BodyRendererInterface is needed by not configured[Mailer] Throw a more specific exception when a BodyRendererInterface is needed but not configuredJul 24, 2022
@fabpotfabpotforce-pushed themailer-more-specific-exception branch fromd3eb508 to60f49feCompareJuly 24, 2022 15:38
@fabpotfabpot merged commit58c50dc intosymfony:6.2Jul 24, 2022
@fabpotfabpot deleted the mailer-more-specific-exception branchJuly 24, 2022 15:39
@fabpotfabpot mentioned this pull requestOct 24, 2022
fabpot added a commit that referenced this pull requestNov 28, 2022
This PR was merged into the 6.2 branch.Discussion----------[Mailer] Fix body renderer check| Q             | A| ------------- | ---| Branch?       | 6.2| Bug fix?      | yes| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | n/a <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->| License       | MIT| Doc PR        | n/aWhat I did in#47049 does not work as one can have many message listeners. So, we need to do this check after all listeners are run.Commits-------8bb7522 [Mailer] Fix body renderer check
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@derrabusderrabusderrabus approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

3 participants

@fabpot@derrabus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp