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][DX] Add notice log when email recipients are not defined#35818

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

Conversation

@noniagriconomie
Copy link
Contributor

QA
Branch?master
Bug fix?no (can it be considered as yes regarding issues comments?)
New feature?no
Deprecations?no
TicketsFix#35805 +#33753
LicenseMIT
Doc PRnone

Hi,

Add a log in order to be aware that no email was sent due to bad data
IF the PR is accepted, is the log levelnotice the right one?

thx

@carsonbotcarsonbot added Status: Needs Review Mailer DXDX = Developer eXperience (anything that improves the experience of using Symfony) labelsFeb 21, 2020
@ogizanagiogizanagi added this to thenext milestoneFeb 21, 2020
}

if (!$envelope->getRecipients()) {
$this->getLogger()->notice('There are no recipients in the mailer envelope. Nothing was sent.');
Copy link
Contributor

@jschaedljschaedlFeb 21, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I would have expected aLogicException and a hint about what I can do to fix the problem.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@jschaedl i did not know the logic behind the « ?SentMessage » method return signature

that is why i added a log and not thrown ex and remove the return null

Maybe we need to wait other review comment :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

friendly ping@fabpot as you have commented on related issue#33753

@fabpotfabpot mentioned this pull requestApr 16, 2020
@fabpot
Copy link
Member

I've fixed the root issue(s) in#36467

noniagriconomie reacted with thumbs up emoji

@fabpotfabpot closed thisApr 16, 2020
fabpot added a commit that referenced this pull requestApr 16, 2020
This PR was merged into the 4.4 branch.Discussion----------Mailer from sender fixes| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       |Fix#35818,Fix#35805,Fix#33753 | License       | MIT| Doc PR        | n/aCommits-------e885860 Fix From/Sender handling in Emails
@noniagriconomienoniagriconomie deleted the feature-mailer-log branchApril 17, 2020 06:53
@nicolas-grekasnicolas-grekas modified the milestones:next,5.1May 4, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotAwaiting requested review from fabpot

1 more reviewer

@jschaedljschaedljschaedl left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

DXDX = Developer eXperience (anything that improves the experience of using Symfony)MailerStatus: Needs Review

Projects

None yet

Milestone

5.1

Development

Successfully merging this pull request may close these issues.

[Mailer] AbstractTransport silently doing nothing if no recipients set

6 participants

@noniagriconomie@fabpot@jschaedl@nicolas-grekas@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp