Forums

Include 'file.php' before sending email

Odine 23 May, 2011
Hello everyone, this is my first post and I need an information.
I have to create a pdf file with the data entered on a form chronoform and save it before sending an email.
To create a pdf file i use the FPDF library and now my question is this: it is possible put the code <? php include 'file.php'; ?> in the On Submit code - before sending email ?
Thanks to all.😀
GreyHead 23 May, 2011
Hi Odine,

Welcome :-)

Yes, use a Custom Code action (in CFv4) or the OnSubmit Before Email box (in CFv3)

Bob
Odine 23 May, 2011
Thank you and good day / night (I'm Italian and here it is day)! 😀
This topic is locked and no more replies can be posted.