[TYPO3-dev] Adding PDF as attachment in div::htmlmail problems.

Steffen Kamper steffen at sk-typo3.de
Wed Jan 9 15:58:01 CET 2008


"Sacha Ligthert" <sacha at ligthert.net> schrieb im Newsbeitrag 
news:mailman.2539.1199887329.5304.typo3-dev at lists.netfielders.de...
> Hi Steffen,
>
> Steffen Kamper wrote:
>> this works:
>>
>> $attachment = PATH_site.'fileadmin/test.pdf';
>> $htmlmail = t3lib_div::makeInstance('t3lib_htmlmail');
>> $htmlmail->start();
>> $htmlmail->subject = $subject;
>> $htmlmail->from_email = $fromMail;
>> $htmlmail->from_name = $fromName;
>> $htmlmail->replyto_email = $htmlmail->from_email;
>> $htmlmail->replyto_name = $htmlmail->from_name;
>> $htmlmail->addAttachment($attachment);
>>  $htmlmail->addPlain($message);
>> $htmlmail->setHeaders();
>> $htmlmail->setContent();
>> $htmlmail->setRecipient(explode(',', $toEMail));
>> $htmlmail->sendTheMail();
>>
> But are you able to read the PDF attachment?
>
> Greetings,
>
> Sacha Ligthert

sure, that's why i said it works.

vg  Steffen 






More information about the TYPO3-dev mailing list