[TYPO3-dev] Adding PDF as attachment in div::htmlmail problems.
Sacha Ligthert
sacha at ligthert.net
Wed Jan 9 15:01:10 CET 2008
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
More information about the TYPO3-dev
mailing list