当前位置: 首页>>代码示例>>PHP>>正文


PHP cEmail::ReplaceSubject方法代码示例

本文整理汇总了PHP中cEmail::ReplaceSubject方法的典型用法代码示例。如果您正苦于以下问题:PHP cEmail::ReplaceSubject方法的具体用法?PHP cEmail::ReplaceSubject怎么用?PHP cEmail::ReplaceSubject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cEmail的用法示例。


在下文中一共展示了cEmail::ReplaceSubject方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ew_SendNotifyEmail

function ew_SendNotifyEmail($sFn, $sSubject, $sTable, $sKey, $sAction)
{
    // Send Email
    if (EW_SENDER_EMAIL != "" && EW_RECIPIENT_EMAIL != "") {
        $Email = new cEmail();
        $Email->Load($sFn);
        $Email->ReplaceSender(EW_SENDER_EMAIL);
        // Replace Sender
        $Email->ReplaceRecipient(EW_RECIPIENT_EMAIL);
        // Replace Recipient
        $Email->ReplaceSubject($sSubject);
        // Replace Subject
        $Email->ReplaceContent("<!--table-->", $sTable);
        $Email->ReplaceContent("<!--key-->", $sKey);
        $Email->ReplaceContent("<!--action-->", $sAction);
        $Email->Send();
    }
}
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:18,代码来源:phpfn50.php

示例2: ew_SendTemplateEmail

function ew_SendTemplateEmail($sTemplate, $sSender, $sRecipient, $sCcEmail, $sBccEmail, $sSubject, $arContent)
{
    if ($sSender != "" && $sRecipient != "") {
        $Email = new cEmail();
        $Email->Load($sTemplate);
        $Email->ReplaceSender($sSender);
        // Replace Sender
        $Email->ReplaceRecipient($sRecipient);
        // Replace Recipient
        if ($sCcEmail != "") {
            $Email->AddCc($sCcEmail);
        }
        // Add Cc
        if ($sBccEmail != "") {
            $Email->AddBcc($sBccEmail);
        }
        // Add Bcc
        if ($sSubject != "") {
            $Email->ReplaceSubject($sSubject);
        }
        // Replace subject
        if (is_array($arContent)) {
            foreach ($arContent as $key => $value) {
                $Email->ReplaceContent($key, $value);
            }
        }
        return $Email->Send();
    }
    return FALSE;
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:30,代码来源:phpfn8.php

示例3: SendEmailOnEdit

 function SendEmailOnEdit(&$rsold, &$rsnew)
 {
     echo $rsold;
     global $Language;
     $sFn = "phptxt/notify.txt";
     $sTable = 'messages';
     $sSubject = $sTable . " " . $Language->Phrase("RecordUpdated");
     $sAction = $Language->Phrase("ActionUpdated");
     // Get key value
     $sKey = "";
     if ($sKey != "") {
         $sKey .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $sKey .= $rsold['id'];
     $Email = new cEmail();
     $Email->Load($sFn);
     $Email->ReplaceSender(EW_SENDER_EMAIL);
     // Replace Sender
     $Email->ReplaceRecipient(EW_RECIPIENT_EMAIL);
     // Replace Recipient
     $Email->ReplaceSubject($sSubject);
     // Replace Subject
     $Email->ReplaceContent("<!--table-->", $sTable);
     $Email->ReplaceContent("<!--key-->", $sKey);
     $Email->ReplaceContent("<!--action-->", $sAction);
     $Email->Charset = EW_EMAIL_CHARSET;
     $Args = array();
     $Args["rsold"] =& $rsold;
     $Args["rsnew"] =& $rsnew;
     $bEmailSent = FALSE;
     if ($this->Email_Sending($Email, $Args)) {
         $bEmailSent = $Email->Send();
     }
     // Send email failed
     if (!$bEmailSent) {
         $this->setFailureMessage($Email->SendErrDescription);
     }
 }
开发者ID:Ombogo,项目名称:new_api_chat,代码行数:38,代码来源:messagesedit.php


注:本文中的cEmail::ReplaceSubject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。