[TYPO3-mvc] Using t3lib_mail_Message in extbase

Valentin Zickner typo3 at joan.coderworks.de
Thu Apr 12 02:40:12 CEST 2012


Hi mr.,

I send mails with the following TYPO3 function:
t3lib_div::plainMailEncoded($recipient,$subject,$content,$header);

This works for me with extbase well.

Regards,

Valentin

On 11.04.2012 22:38, mrwhy at arcor.de wrote:
> 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.
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list