本文整理汇总了PHP中Forms::sendMailFormPDF方法的典型用法代码示例。如果您正苦于以下问题:PHP Forms::sendMailFormPDF方法的具体用法?PHP Forms::sendMailFormPDF怎么用?PHP Forms::sendMailFormPDF使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Forms
的用法示例。
在下文中一共展示了Forms::sendMailFormPDF方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Forms
<?php
include_once "../includes/webservice.inc.php";
$webService = new Webservices_Writer();
$webService->init();
$formObj = new Forms();
$data = isset($_POST['data']) ? $_POST['data'] : '';
if ($result = $formObj->getFormPDF($data)) {
if ($result['status'] == 'OK') {
$result_data = $formObj->getFormPDFData($data);
/* $fp = fopen('/var/www/html/logfiles/sendform.txt', 'a');
fwrite($fp,$result['pdffile']. "\n");
fwrite($fp, $result['email']."\n");
fclose($fp);
*/
$emailsend = $formObj->sendMailFormPDF($result['pdffile'], PDF_PATH, $result['email'], SMTP_USER, '', '', 'H.A.R.T.scan Report ' . $result['UR'] . '', 'Please find the attached PDF', $result_data);
$webService->createXMLInstance();
$webService->appendArrayToRootNode('', $emailsend);
$webService->displayXML();
} else {
$webService->createXMLInstance();
$webService->appendArrayToRootNode('', $result);
$webService->displayXML();
}
} else {
$xmls = $webService->errorXML(join(",", $formObj->errorMessages));
$webService->outputXML($xmls);
}