Skip to content

Commit

Permalink
[DOCS] Wrong API example for FluidEmail in changelog
Browse files Browse the repository at this point in the history
The actual method name is format, not setFormat, that should be
respected by changelog docs.

Resolves: #92732
Releases: master, 10.4
Change-Id: Iaca271783da78440b973b7afcae41ba62bc1b561
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66337
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
DanielSiepmann authored and bmack committed Oct 29, 2020
1 parent 52b14ce commit ee621d9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ It is possible to use the same API in your custom extension like this:
->to('contact@acme.com')
->from(new Address('jeremy@acme.com', 'Jeremy'))
->subject('TYPO3 loves you - here is why')
->setFormat('html') // only HTML mail
->format('html') // only HTML mail
->setTemplate('TipsAndTricks')
->assign('mySecretIngredient', 'Tomato and TypoScript');
GeneralUtility::makeInstance(Mailer::class)->send($email);
Expand Down

0 comments on commit ee621d9

Please sign in to comment.