[TYPO3-caretaker] Caretaker - Typo3 4.7 Mail Notification

Tobias Liebig tobias.liebig at typo3.org
Wed Jun 6 13:23:44 CEST 2012


Great. Thanks.

Could you open an issue on forge for that or even provide a patch?

regards
   tobias


Am 06.06.2012 um 11:38 schrieb Nina:

> Hey,
> 
> I run Caretaker with Typo3 4.7 and run in Problems with the Mail Notification (notifications.simple_mail.enabled).
> Since Typo3 4.7 t3lib_htmlmail is removed. So I got PHP errors:
> PHP Fatal error: Class 't3lib_htmlmail' not found in typo3conf/ext/caretaker/classes/services/notifications/class.tx_caretaker_SimpleMailNotificationService.php on line 235
> 
> So i replaced in the above mentioned file following:
> $mail = new t3lib_htmlmail();
> $mail->charset = 'utf-8';
> $mail->start();
> $mail->from_email = $from;
> $mail->returnPath = $from;
> $mail->subject = $subject;
> $mail->setPlain($mail->encodeMsg($message));
> 
> return $mail->send($recipient);
> 
> With:
> $mail = t3lib_div::makeInstance('t3lib_mail_Message');
> $mail->setFrom($from);
> $mail->setTo($recipient);
> $mail->setSubject($subject);
> $mail->setBody($message);
> return $mail->send();
> 
> Now it runs fine.
> 
> Greetings Nina
> _______________________________________________
> TYPO3-project-caretaker mailing list
> TYPO3-project-caretaker at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-caretaker

-- 
Tobias Liebig
TYPO3 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org

http://bit.ly/supportTYPO3



More information about the TYPO3-project-caretaker mailing list