When I try to use the following custom script I recieve a pdf attachment but it is just one blank page.
%%pdf = sgapiHTMLTOPDF(%%contents);
%%attachment[’filename.pdf’] = %%pdf;
//Attach to existing send email action (ID 108)
any ideas? thanks a lot!
I am not a PHP scripting expert, but I have used the attach a certificate script in the SurveyGizmo Developer Resources for several different projects. This script creates a certificate that is then attached as a pdf file to an email. The bulk of that script actually builds the HTML file (head, body) that is then converted to a PDF – these are steps that your script seems to lack.
Hope this is helpful!