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] Add docs about Mailer stamps#17390

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
javiereguiluz merged 1 commit intosymfony:6.2fromfabpot:mailer-stamps
Oct 26, 2022

Conversation

@fabpot
Copy link
Member

Closes#17111

Copy link
Member

@wouterjwouterj left a comment

Choose a reason for hiding this comment

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

Thank you Fabien!

Comment on lines +1488 to +1495
This event lets listeners do something before a message is sent to the queue
(like adding stamps or logging) but any changes to the message or the envelope
are discarded. To change the message or the envelope, listen to
``MessageEvent`` instead.
Copy link
Member

Choose a reason for hiding this comment

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

This paragraph seems to contradict the "do something with the message" comment in the code example above.

Is it saying "you can change the messenger message, but not the email" or is this a copy-paste error?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

You can change the message if you want to, it will just be ignored. That's useful when you want to get errors early on (before sending things to the queue) like rendering the message to be sure there are no errors in templates. I have added a parenthesis with logging t make things a bit clearer about the primary use cases.

@carsonbotcarsonbot changed the titleAdd docs about Mailer stamps[Mailer] Add docs about Mailer stampsOct 26, 2022
@javiereguiluz
Copy link
Member

Nice contribution! Thanks Fabien.

@javiereguiluzjaviereguiluz merged commit9062a32 intosymfony:6.2Oct 26, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

[Mailer] Add a way to inject Stamps when sending an email via Messenger

4 participants

@fabpot@javiereguiluz@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp