[TYPO3-mvc] Using t3lib_mail_Message in extbase

mrwhy at arcor.de mrwhy at arcor.de
Wed Apr 11 22:38:50 CEST 2012


Hi @ all,

i´m trying to use the mailing function in Extbase, but it didn´t work. I´ve tried it with mail and smtp configuration -> no mail in my mailbox. If i use the mail function from php directly it works as aspected. Here is my code for mailing with t3lib:

$mailS = t3lib_div::makeInstance('t3lib_mail_Message');
$mailS->setFrom(array($mailSh => $sh));
$mailS->setTo(array($mailB => $b));
$mailS->setSubject($subject);
$mailS->setBody($messageS);
$mailS->send();

Any ideas?

Thx

mr.


More information about the TYPO3-project-typo3v4mvc mailing list