Skip to content

[Mailer] add more info for debugging #17950

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
Mar 15, 2023
Merged

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Feb 21, 2023

Hi

I did not understand this section of getDebug until I navigate the code and see the swap to do with

  • MailerInterface and TransportInterface

MailerInterface

$a = $this->mailer->send($email); // $a is null

TransportInterface

$a = $this->mailer->send($email); // $a is SentMessage

mailer.rst Outdated
@@ -641,6 +641,12 @@ provides access to the original message (``getOriginalMessage()``) and to some
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
transports, which is useful to debug errors.

.. note::

You will need to replace the typehint :class:`Symfony\\Component\\Mailer\\MailerInterface`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
You will need to replace the typehint :class:`Symfony\\Component\\Mailer\\MailerInterface`
You will need to replace :class:`Symfony\\Component\\Mailer\\MailerInterface`

mailer.rst Outdated
.. note::

You will need to replace the typehint :class:`Symfony\\Component\\Mailer\\MailerInterface`
:class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface` to have
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
:class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface` to have
with :class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface` to have

@OskarStark
Copy link
Contributor

Open to finish this PR?

@94noni
Copy link
Contributor Author

94noni commented Mar 11, 2023

@OskarStark thx for reviewing, here you are PR updated :)

@OskarStark
Copy link
Contributor

This is already the case in 5.4 branch, isn't it?

@javiereguiluz javiereguiluz added this to the 5.4 milestone Mar 15, 2023
@javiereguiluz javiereguiluz changed the base branch from 6.2 to 5.4 March 15, 2023 10:15
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner March 15, 2023 10:15
@javiereguiluz javiereguiluz merged commit 55f00f3 into symfony:5.4 Mar 15, 2023
@javiereguiluz
Copy link
Member

Thanks Antoine! We merged this in 5.4 branch and up.

@94noni 94noni deleted the patch-12 branch March 15, 2023 10:49
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.

4 participants