Forums

Email confirmation with PDF attachment

TOTKO 17 Feb, 2010
Hi,

I have looked at a lot of postings and I can't seem to get anything to work - perhaps I am misunderstanding the functionality.

I would like to include a PDF attachment (invoice) when someone registers for a course and the confirmation email is sent.

Is this possible? Being a newbie, a step by step instruction would be gratefully accepted.

Thanks

Tony
GreyHead 17 Feb, 2010
Hi Tony,

I don't think that anyone has properly solved the problem of creating the PDF; attaching the file is no big problem and is addressed several times here.

Which are you stuck on?

Bob
rockhard 04 Mar, 2010
It is possible to create a PDF file using the TCPDF class in ChronoForms. I have it working by adding code in the On Submit code - before sending email section. Some examples on how to use TCPDF can be found at http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf

Once you create the PDF, you need to output it using
$pdf->Output("tmp/whatever.pdf", "F");


Now you can upload it as an attachment.

Hope this helps
TOTKO 06 Mar, 2010
Sorry for the delay in responding. I expected an email when posts were made!

In the end I formatted my email reply to give an additional page of the data I would have included in the PDF. I think this is best as I wanted to include the current date in the response.

Thanks for your help.
This topic is locked and no more replies can be posted.