Classes/Controller/AddressController.php
public function unsubscribeFormAction( $email = NULL )
    {
        $address = $this->addressRepository->findOneByEmail($email);

        if ($email != NULL) {
            $this->view->assign('email', $email);
        }
        if ($address) {
            $data = [
                'address' => $address,
                'hash' => $address->getRegisteraddresshash()
            ];

            $mailTemplate = 'Address/MailNewsletterUnsubscribe';
            $this->sendResponseMail(
                $address->getEmail(),
                $mailTemplate,
                $data,
                $this->settings['mailformat'],
                LocalizationUtility::translate('mail.unsubscribe.subjectsuffix', 'registeraddress')
            );

            $this->view->assign('address', $address);
        }
    }
public function unsubscribeFormAction( $email = NULL )
    {
        $address = $this->addressRepository->findOneByEmail($email);

        if ($email != NULL) {
            $this->view->assign('email', $email);
        }
        if ($address) {
            $data = [
                'address' => $address,
                'hash' => $address->getRegisteraddresshash()
            ];

            $mailTemplate = 'Address/MailNewsletterUnsubscribe';
            $this->sendResponseMail(
                $address->getEmail(),
                $mailTemplate,
                $data,
                $this->settings['mailformat'],
                LocalizationUtility::translate('mail.unsubscribe.subjectsuffix', 'registeraddress')
            );

            $this->view->assign('address', $address);
        }
    }
public function unsubscribeFormAction ( $ email = NULL ) { $ address = $ this -> addressRepository -> findOneByEmail ( $ email ) ; if ( $ email != NULL ) { $ this -> view -> assign ( 'email' , $ email ) ; } if ( $ address ) { $ data = [ 'address' => $ address , 'hash' => $ address -> getRegisteraddresshash ( ) ] ; $ mailTemplate = 'Address/MailNewsletterUnsubscribe' ; $ this -> sendResponseMail ( $ address -> getEmail ( ) , $ mailTemplate , $ data , $ this -> settings [ 'mailformat' ] , LocalizationUtility :: translate ( 'mail.unsubscribe.subjectsuffix' , 'registeraddress' ) ) ; $ this -> view -> assign ( 'address' , $ address ) ; } }
action send unsubscribe link to e-mail address

@param \string $email
@return void
@throws \InvalidArgumentException
@throws \TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnsupportedMethodException
@throws \TYPO3\CMS\Extbase\Mvc\Exception\InvalidExtensionNameException
action send unsubscribe link to e - mail address