Re: Attach a generated PDF to an email automatically
I suggest you use fpdf command and libraries to create your pdf file through scriptcase Blank Application, but first you need to load the fpdf.php from C:NetMakev6wwwrootscriptcaseprod hirdfpdf to your scriptcase development libraries.
To save it to a folder on the server use:
$pdf->Output("/directory/filename.pdf",“F”);
After that, you can use the following scriptcase function to send the pdf attachment via email.
sc_mail_send (SMTP, Usr, Pw, From, To, Subject, Message, Mens_Type, Copies, Copies_Type, Port, Connection_Type, Attachment)
If you are using the ReportPDF application from scriptcase, then you can use sc_pdf_output() macro to save the file.