本文整理匯總了PHP中TikiMail::setCc方法的典型用法代碼示例。如果您正苦於以下問題:PHP TikiMail::setCc方法的具體用法?PHP TikiMail::setCc怎麽用?PHP TikiMail::setCc使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TikiMail
的用法示例。
在下文中一共展示了TikiMail::setCc方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
header("location: tiki-webmail.php?locSection=settings");
die;
}
// Send a message
if (isset($_REQUEST["reply"]) || isset($_REQUEST["replyall"])) {
check_ticket('webmail');
$webmaillib->set_mail_flag($current["accountId"], $user, $_REQUEST["realmsgid"], 'isReplied', 'y');
}
$smarty->assign('sent', 'n');
$smarty->assign('attaching', 'n');
if (isset($_REQUEST["send"])) {
$mail = new TikiMail($user);
$email = $userlib->get_user_email($user);
$mail->setFrom($email);
if (!empty($_REQUEST["cc"])) {
$mail->setCc($_REQUEST["cc"]);
}
if (!empty($_REQUEST["bcc"])) {
$mail->setBcc($_REQUEST["bcc"]);
}
$mail->setSubject($_REQUEST["subject"]);
if ($_REQUEST["attach1"]) {
check_ticket('webmail');
$a1 = $mail->getFile('temp/mail_attachs/' . $_REQUEST["attach1file"]);
$mail->addAttachment($a1, $_REQUEST["attach1"], $_REQUEST["attach1type"]);
@unlink('temp/mail_attachs/' . $_REQUEST["attach1file"]);
}
if ($_REQUEST["attach2"]) {
check_ticket('webmail');
$a2 = $mail->getFile('temp/mail_attachs/' . $_REQUEST["attach2file"]);
$mail->addAttachment($a2, $_REQUEST["attach2"], $_REQUEST["attach2type"]);
示例2: handleWebmailRedirect
if (!$current) {
handleWebmailRedirect('locSection=settings');
}
$headerlib->add_js('if (webmailTimeoutId) {window.clearTimeout(webmailTimeoutId);}', 0);
// Send a message
if (isset($_REQUEST['reply']) || isset($_REQUEST['replyall'])) {
check_ticket('webmail');
$webmaillib->set_mail_flag($current['accountId'], $user, $_REQUEST['realmsgid'], 'isReplied', 'y');
}
$smarty->assign('sent', 'n');
$smarty->assign('attaching', 'n');
if (isset($_REQUEST['send'])) {
$email = empty($current['fromEmail']) ? $userlib->get_user_email($user) : $current['fromEmail'];
$mail = new TikiMail($user, $email);
if (!empty($_REQUEST['cc'])) {
$mail->setCc($_REQUEST['cc']);
}
if (!empty($_REQUEST['bcc'])) {
$mail->setBcc($_REQUEST['bcc']);
}
$mail->setSubject($_REQUEST['subject']);
if ($_REQUEST['attach1']) {
check_ticket('webmail');
$a1 = file_get_contents('temp/mail_attachs/' . $_REQUEST['attach1file']);
$mail->addAttachment($a1, $_REQUEST['attach1'], $_REQUEST['attach1type']);
@unlink('temp/mail_attachs/' . $_REQUEST['attach1file']);
}
if ($_REQUEST['attach2']) {
check_ticket('webmail');
$a2 = file_get_contents('temp/mail_attachs/' . $_REQUEST['attach2file']);
$mail->addAttachment($a2, $_REQUEST['attach2'], $_REQUEST['attach2type']);