當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SugarEmailAddress::AddUpdateEmailAddress方法代碼示例

本文整理匯總了PHP中SugarEmailAddress::AddUpdateEmailAddress方法的典型用法代碼示例。如果您正苦於以下問題:PHP SugarEmailAddress::AddUpdateEmailAddress方法的具體用法?PHP SugarEmailAddress::AddUpdateEmailAddress怎麽用?PHP SugarEmailAddress::AddUpdateEmailAddress使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SugarEmailAddress的用法示例。


在下文中一共展示了SugarEmailAddress::AddUpdateEmailAddress方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: markEmailAddressInvalid

/**
 * Given an email address, mark it as invalid.
 *
 * @param $email_address
 */
function markEmailAddressInvalid($email_address)
{
    if (empty($email_address)) {
        return;
    }
    $sea = new SugarEmailAddress();
    $rs = $sea->retrieve_by_string_fields(array('email_address_caps' => trim(strtoupper($email_address))));
    if ($rs != null) {
        $sea->AddUpdateEmailAddress($email_address, 1, 0, $rs->id);
    }
}
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:16,代碼來源:ProcessBouncedEmails.php

示例2: SugarEmailAddress

     $lead->campaigns->add($camplog->id);
     if (!empty($GLOBALS['check_notify'])) {
         $lead->save($GLOBALS['check_notify']);
     } else {
         $lead->save(FALSE);
     }
 }
 //in case there are forms out there still using email_opt_out
 if (isset($_POST['webtolead_email_opt_out']) || isset($_POST['email_opt_out'])) {
     if (isset($lead->email1) && !empty($lead->email1)) {
         $sea = new SugarEmailAddress();
         $sea->AddUpdateEmailAddress($lead->email1, 0, 1);
     }
     if (isset($lead->email2) && !empty($lead->email2)) {
         $sea = new SugarEmailAddress();
         $sea->AddUpdateEmailAddress($lead->email2, 0, 1);
     }
 }
 if (isset($_POST['redirect_url']) && !empty($_POST['redirect_url'])) {
     // Get the redirect url, and make sure the query string is not too long
     $redirect_url = $_POST['redirect_url'];
     $query_string = '';
     $first_char = '&';
     if (strpos($redirect_url, '?') === FALSE) {
         $first_char = '?';
     }
     $first_iteration = true;
     $get_and_post = array_merge($_GET, $_POST);
     foreach ($get_and_post as $param => $value) {
         if ($param == 'redirect_url' || $param == 'submit') {
             continue;
開發者ID:rgauss,項目名稱:sugarcrm_dev,代碼行數:31,代碼來源:WebToLeadCapture.php

示例3: SugarEmailAddress

            if (!empty($GLOBALS['check_notify'])) {
                $person->save($GLOBALS['check_notify']);
            } else {
                $person->save(false);
            }
        }

        //in case there are forms out there still using email_opt_out
        if (isset($_POST['webtolead_email_opt_out']) || isset($_POST['email_opt_out'])) {
            if (isset($person->email1) && !empty($person->email1)) {
                $sea = new SugarEmailAddress();
                $sea->AddUpdateEmailAddress($person->email1, 0, 1);
            }
            if (isset($person->email2) && !empty($person->email2)) {
                $sea = new SugarEmailAddress();
                $sea->AddUpdateEmailAddress($person->email2, 0, 1);
            }
        }
        if (isset($_POST['redirect_url']) && !empty($_POST['redirect_url'])) {
            // Get the redirect url, and make sure the query string is not too long
            $redirect_url = $_POST['redirect_url'];
            $query_string = '';
            $first_char = '&';
            if (strpos($redirect_url, '?') === false) {
                $first_char = '?';
            }
            $first_iteration = true;
            $get_and_post = array_merge($_GET, $_POST);
            foreach ($get_and_post as $param => $value) {
                if ($param == 'redirect_url' && $param == 'submit') {
                    continue;
開發者ID:auf,項目名稱:crm_auf_org,代碼行數:31,代碼來源:WebToPersonCapture.php


注:本文中的SugarEmailAddress::AddUpdateEmailAddress方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。