本文整理匯總了PHP中mailer::sendForMe方法的典型用法代碼示例。如果您正苦於以下問題:PHP mailer::sendForMe方法的具體用法?PHP mailer::sendForMe怎麽用?PHP mailer::sendForMe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mailer
的用法示例。
在下文中一共展示了mailer::sendForMe方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: attachedfiles
$insert['filter_emp'] = $mailer->createFilter('mailer_filter_employer', $insert['filter_emp']);
}
if ($insert['filter_frl']) {
$insert['filter_frl'] = $mailer->createFilter('mailer_filter_freelancer', $insert['filter_frl']);
}
$count = mailer::getCountRecipients(array('emp', 'frl'), $message);
$insert['count_rec_emp'] = (int) $count[0];
$insert['count_rec_frl'] = (int) $count[1];
}
$id = $mailer->create($insert);
if ($id && $_POST['attachedfiles_session'] && $insert['is_attached'] == true) {
$mailer->addAttachedFiles($_POST['attachedfiles_files'], $id);
$attachedfiles = new attachedfiles($_POST['attachedfiles_session']);
$attachedfiles->clear();
}
$mailer->sendForMe($id, $message);
header("Location: /siteadmin/mailer/?action=edit&id={$id}&sending=1");
exit;
}
break;
case 'digest':
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/Digest/DigestFactory.php';
$blocks = new DigestFactory();
$blocks->createDefaultBlocks();
$ablocks = $blocks->getBlocks();
foreach ($ablocks as $block) {
$class = $block->__toString();
if (is_array($_POST['position'][$class]) && count($_POST['position'][$class]) > 1) {
$blocks->createAdditionBlocks(clone $block, count($_POST['position'][$class]) - 1);
}
}