Skip to content

Commit

Permalink
Generate documentation
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub Actions <actions@github.com>
  • Loading branch information
sabbelasichon authored and actions-user committed Feb 10, 2021
1 parent c7eb16c commit 97e733c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/all_rectors_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2523,13 +2523,16 @@ Refactor ContentObjectRenderer::sendNotifyEmail to MailMessage-API
+use TYPO3\CMS\Core\Mail\MailMessage;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Core\Utility\MailUtility;$success = false;
+
+$mail = GeneralUtility::makeInstance(MailMessage::class);
+$message = trim("Subject\nMessage");
+$senderName = trim(null);
+$senderAddress = trim('max.mustermann@domain.com');
+
+if ($senderAddress !== '') {
+ $mail->from(new Address($senderAddress, $senderName));
+}
+
+if ($message !== '') {
+ $messageParts = explode(LF, $message, 2);
+ $subject = trim($messageParts[0]);
Expand Down

0 comments on commit 97e733c

Please sign in to comment.