Skip to content

Update email.rst #9737

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The Swift Mailer library works by creating, configuring and then sending
of the message and is accessible via the ``Swift_Mailer`` service. Overall,
sending an email is pretty straightforward::

// Put PHP Doc here
Copy link
Member

Choose a reason for hiding this comment

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

I do not understand what you mean with this. What kind of PHPdoc would you like to see here?

Copy link
Author

Choose a reason for hiding this comment

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

@xabbuh
PHPDoc related to these parameters: $name, \Swift_Mailer $mailer but I understand this information is clearly irrelevant to this context.
This pull request was made when I am lost how to send an email but finally I could do it.
I am going to close it.

public function index($name, \Swift_Mailer $mailer)
{
$message = (new \Swift_Message('Hello Email'))
Expand Down Expand Up @@ -81,6 +82,8 @@ sending an email is pretty straightforward::
return $this->render(...);
}

// Write an example of execution

To keep things decoupled, the email body has been stored in a template and
rendered with the ``renderView()`` method. The ``registration.html.twig``
template might look something like this:
Expand Down