Skip to content

Commit

Permalink
minor #5240 [Cookbook][Email] revert #4808 (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Email] revert #4808

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #4884

Commits
-------

b1e8d54 revert #4808
  • Loading branch information
wouterj committed May 10, 2015
2 parents 0c70254 + b1e8d54 commit 0abbd34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cookbook/email/email.rst
Expand Up @@ -93,9 +93,8 @@ an email is pretty straightforward::

public function indexAction($name)
{
$mailer = $this->get('mailer');
$message = $mailer->createMessage()
->setSubject('You have Completed Registration!')
$message = \Swift_Message::newInstance()
->setSubject('Hello Email')
->setFrom('send@example.com')
->setTo('recipient@example.com')
->setBody(
Expand All @@ -117,7 +116,7 @@ an email is pretty straightforward::
)
*/
;
$mailer->send($message);
$this->get('mailer')->send($message);

return $this->render(...);
}
Expand Down

0 comments on commit 0abbd34

Please sign in to comment.