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


PHP phpmailer::AddBCC方法代码示例

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


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

示例1: sendFeedbackConfirmation

 function sendFeedbackConfirmation(&$Model, $userName, $userEmail, $feedbackType, $feedback)
 {
     $mail = new phpmailer();
     $mail->AddAddress($userEmail, $userName);
     $mail->AddBCC(METAREP_SUPPORT_EMAIL);
     $mail->Subject = "METAREP Feedback Confirmation";
     $mail->FromName = 'METAREP Administrator';
     $mail->From = METAREP_SUPPORT_EMAIL;
     $message = "Thank you very much for your METAREP feedback. Your feedback confirmation:\n\n";
     $message .= "Feedback Type: {$feedbackType}\n\n";
     $message .= "Feedback Description: \n{$feedback}";
     $feedback = urldecode($feedback);
     $mail->Body = $message;
     $mail->Send();
 }
开发者ID:JCVI-Cloud,项目名称:METAREP,代码行数:15,代码来源:membership.php

示例2: sendAviso

function sendAviso($idNaviera, $msg, $subject)
{
    global $db, $hoy, $mscIdUsuario;
    /*
    ---------------------------------------------------------------
    Esta funcion se encarga de enviar un tipo de AVISO a todos los
    clientes del catalogo CS_CLIENTE, pero antes debe detectar a que correos los debe
    enviar.
    ---------------------------------------------------------------
    */
    $mail = new phpmailer();
    $mail->Priority = 0;
    // Se declara la prioridad del mensaje.
    /*
        // EMAIL NAVIERA
        $sql = "select naviera,email from NAVIERA where id_naviera='$idNaviera'";
        $db->query ( $sql );
        while ( $db->next_record () ) {
            $naviera = $db->f( naviera );        
            $emailCad = $db->f(email);
        }        
    */
    $emailCad = "jorge.monjaraz.f@gmail.com";
    // ------------------------------------------------
    // CONFIGURAR EMAIL.
    // ------------------------------------------------
    //Definimos las propiedades y llamamos a los métodos
    //correspondientes del objeto mail
    //Con PluginDir le indicamos a la clase phpmailer donde se
    //encuentra la clase smtp que como he comentado al principio de
    //este ejemplo va a estar en el subdirectorio includes
    //$mail->PluginDir = "includes/";
    $mail = new phpmailer();
    $mail->Priority = 0;
    // Se declara la prioridad del mensaje.
    $mail->PluginDir = "../include/";
    $mail->Mailer = "smtp";
    // Configurar la cuenta de correo.
    $mail->Host = "vishnu.hosting-mexico.net";
    $mail->SMTPAuth = true;
    $mail->Username = "robot@almartcon-sys.com.mx";
    $mail->Password = "#h]7gFL;B+{0";
    $mail->From = "robot@almartcon-sys.com.mx";
    $mail->FromName = "Robot ALMARTCON";
    $mail->Timeout = 10;
    // --------------------
    // FORMATO HTML
    // --------------------
    $mail->Body = "\n    <html>\n\n    <b>ALMARTCON, S.A. de C.V. </b><br>\n    <br>\n    <center>                \n\n    </center>\n    <p>                                        \n    <center><font size=4 color=blUE>* R E P O R T E S *</font></center>                    \n    <p>                                        \n    {$msg}\n\n    </body>\n    </html>\n    ";
    $mail->AltBody = "\n    ALMARTCON, S.A. de C.V.\n    =====================================================================\n    ";
    // --------------------------------------------------------------
    // Reconocer las cuentas de correo que tiene asignadas el cliente.
    // Se enviara copia de la notificación via email.
    // --------------------------------------------------------------
    //$arrDirDestino = array_unique($arrDirDestino);
    // Agrupar direcciones "PARA:";
    $mail->ClearAddresses();
    $flgOk = 0;
    // -----------
    // TEST NESTOR
    // -----------
    /*
    if( $idNaviera==13 ){
        $emailCad = "ijdiaz@maritimex.com.mx,em@clipper-solutions.com,nestor@nesoftware.net";
        $subject = "[ALMARTCON, S.A. de C.V.] ** TEST ** ";
    }
    */
    $emailCad = str_replace(" ", "", $emailCad);
    $arrDirDestino = explode(",", $emailCad);
    foreach ($arrDirDestino as $emailDestino) {
        $emailDestino = trim($emailDestino);
        if (!empty($emailDestino)) {
            $mail->AddAddress($emailDestino);
            $flgOk = 1;
        }
    }
    // Si Existe por lo menos una cuenta de destino, entonces que genere el email.
    if ($flgOk == 1) {
        // -------------
        // Destinatarios
        // -------------
        // Con copia A:
        $mail->AddCC("operacion@almartcon.com");
        $mail->AddBCC("jmonjaraz@nesoftware.net");
        //$mail->AddBCC("nestor@nesoftware.net");
        // Subject :
        $mail->Subject = $subject;
        // Incluir Attach.
        $mail->AddAttachment("../files/EntradasNav.xlsx", "Status-Conte.xlsx");
        //$mail->AddAttachment("../files/SalidasNav.csv","Salidas.csv");
        //$mail->AddAttachment("../files/InventarioNav.csv","Inventario.csv");
        // Se envia el mensaje, si no ha habido problemas, la variable $exito tendra el valor true
        $exito = $mail->Send();
        echo "[ <font color=blue><b>El Msj se envio con exito a {$naviera}!</b></font> ]  <br>";
    } else {
        echo "[ <font color=red><b>Falta Email</b></font> ] <a href=\"javascript:ventanaNueva('csNfyCatCli2.php?modo=consulta&idCliente={$idCliente}',600,400)\">{$cliente}</a> <br>";
    }
}
开发者ID:nesmaster,项目名称:anakosta,代码行数:98,代码来源:navRepEmailPro.php

示例3: phpmailer

<!-- end footer-->
</td>
</tr>

<tr><td height="30"></td></tr>

</tbody>
</table>
</body>
</html>';
require_once 'mail/class.phpmailer.php';
$asunto = "Bienvenido al APP-CONGRESS";
$mensaje = $html;
$mail = new phpmailer();
$mail->PluginDir = "mail/";
$mail->Mailer = "smtp";
$mail->Host = "mail.registroenlinea.mx";
$mail->SMTPAuth = 1;
$mail->IsSendMail();
$mail->Username = "contacto@registroenlinea.mx";
$mail->Password = "Contacto1;";
$mail->Port = "2525";
$mail->From = "registrogrupolahe@gmail.com";
$mail->FromName = "APP-CONGRESS SMO";
$mail->Timeout = 15;
$mail->AddAddress($graphObject['email']);
$mail->AddBCC("registrogrupolahe@gmail.com");
$mail->IsHTML(true);
$mail->Subject = $asunto;
$mail->Body = utf8_decode($mensaje);
$mail->Send();
开发者ID:jesusisimo,项目名称:appcongress,代码行数:31,代码来源:envioRegistroF.php

示例4: sendMail

function sendMail($bl, $pod)
{
    global $hoy;
    $db = new DB_Sql();
    $db->connect("MscCobranza", "10.110.13.13", "root", "");
    $mail = new phpmailer();
    $mail->Priority = 0;
    // Se declara la prioridad del mensaje.
    // ------------------------------------------------
    // CONFIGURAR EMAIL.
    // ------------------------------------------------
    //Definimos las propiedades y llamamos a los métodos
    //correspondientes del objeto mail
    //Con PluginDir le indicamos a la clase phpmailer donde se
    //encuentra la clase smtp que como he comentado al principio de
    //este ejemplo va a estar en el subdirectorio includes
    $mail->PluginDir = "../include/";
    $mail->Mailer = "smtp";
    // ++ EXCHANGE MSC ++
    $userName = 'nala\\robot.sion';
    $pass = 'C3pomsc77';
    $mail->IsSMTP();
    $mail->SMTPSecure = 'tls';
    $mail->SMTPAuth = true;
    $mail->Host = 'mail.mscgva.ch';
    // IP 193.138.73.142
    $mail->Username = $userName;
    $mail->Password = $pass;
    $mail->Port = 25;
    $mail->From = 'robot.sion@mscmexico.com';
    $mail->FromName = 'Robot.SION';
    $mail->Timeout = 10;
    //El valor por defecto 10 de Timeout es un poco escaso dado que voy a usar
    //una cuenta gratuita, por tanto lo pongo a 30
    //$mail->Timeout=10;
    $mail->Timeout = 10;
    $paisSan = getValueTable("country", "DOC_PAIS_SANCIONADO", "code", $pod);
    // --------------------
    // FORMATO HTML
    // --------------------
    $mail->Body = "\n        <html>\n        <body>\n        <center>\n        <table border=0 cellpadding=2 cellspacing=1>\n        <tr>\n        <td width=\"60\" height=\"40\" valign=top align=right><img src=\"http://148.245.13.34/nestor/images/logoMscGoldSmall.gif\"  ></td>\n        <td valign=top align=center>\n        <font size=\"4\"><b>Mediterranean Shipping Company México S.A. de C.V.</b></font><br>\n        <font size=\"2\">Sólo como agentes / As agents only</font>\n        </td>\n        </tr>\n        <tr>\n        <td colspan=2><hr></td>\n        </tr>\n        </table>\n        <font size=\"4\"><b>NOTIFICACION - SANCTIONS COMPLIANCE<br>({$paisSan})</b><BR>{$bl}</font>\n        </center>\n        <p>\n\n        Estimado Ejecutivo de Ventas\n        <p>\n        El bl de referencia tiene un destino a uno de los países sancionados.\n        Por favor confirmar si el procedimiento de las políticas de conformidad ha sido realizado y firmado por el Sr. Alonso Sopeña y/o el Sr. Homely Rojas\n        de lo contrario la carga no podrá ser embarcada.\n        <p>\n        En espera de sus urgentes comentarios.\n        <br>\n        Este mensaje es enviado por razones de SEGURIDAD.\n        <p>\n        <i>\n        Att. Robot SION.<br>\n        </i>\n        <p>\n        <hr>\n        <font color=\"red\" size=\"2\">\n        <i>Este es un correo de envio automático por nuestro sistema SION, por favor no responda este email.</i>\n        </font>\n        <br>\n        <br>\n        <br>\n\n        </body>\n        </html>\n\n        ";
    // -------------------------------------------------------
    // FORMATO TEXTO
    // Definimos AltBody por si el destinatario del correo
    // no admite email con formato html
    // -------------------------------------------------------
    $mail->AltBody = "\n        MEDITERRANEAN SHIPPING COMPANY MÉXICO\n        MSC México (As Agents Only-Solo como Agentes)\n        =====================================================================\n        ";
    // Nota :
    // La direccion PARA solo se puede manejar 1.
    // Las direcciones CC puede manejar N correos.
    // -------------
    // Destinatarios
    // -------------
    $mail->ClearAddresses();
    // ------------------------------------------------
    /*
    $arrDirDestino[] ="nperez@mscmexico.com";
    foreach ( $arrDirDestino as $emailDestino ) {
    if (! empty ( $emailDestino )) {
    $mail->AddAddress ( $emailDestino );
    $emailDesTxt .= "$emailDestino,";
    }
    }
    */
    $mail->AddCC("compliancemx@mscmexico.com");
    // Copia Ciega
    $mail->AddBCC("nperez@mscmexico.com");
    $mail->AddBCC("fruiz@mscmexico.com");
    //$mail->AddAddress("nperez@mscmexico.com");
    //if(!empty($sndCC))$mail->AddCC($sndCC);
    // -----------------------------------------
    // Subject
    //-----------------------------------------
    $sql = "select * from DOC_CTRL_EXPO ";
    $sql .= "where bl='{$bl}' ";
    $db->query($sql);
    while ($db->next_record()) {
        // -----------------------------------------
        // Comprobar q no tenga la firma BL-REVISION
        // -----------------------------------------
        $bl = $db->f(bl);
        $bkg = $db->f(bkg);
        $bkgp = $db->f(bkg_party);
        $executive = $db->f(bkg_executive);
        $exeMail1 = getValueTable("mail1", "DOC_CAT_EJE", "cod", $executive);
        $exeMail2 = getValueTable("mail2", "DOC_CAT_EJE", "cod", $executive);
        $exeMail3 = getValueTable("mail3", "DOC_CAT_EJE", "cod", $executive);
        if (!empty($exeMail1)) {
            $mail->AddAddress($exeMail1);
        }
        if (!empty($exeMail2)) {
            $mail->AddAddress($exeMail2);
        }
        if (!empty($exeMail3)) {
            $mail->AddAddress($exeMail3);
        }
        $pol = $db->f(pol);
        $pod = $db->f(pod);
        $who = $db->f(who);
        $idBarco = getValueTable("id_barco", "DOC_CTRL_EXPO", "id_bl", $idBl);
//.........这里部分代码省略.........
开发者ID:nesmaster,项目名称:msclink,代码行数:101,代码来源:extractor.php

示例5: copy

     copy($pic3, $pic3_file);
 }
 if ($pic3_file) {
     $mail->AddAttachment("{$pic3_file}", "{$pic3_name}");
 }
 echo "<b>Send Newsletter</b><br><br>\n";
 $count = 0;
 echo " <table align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n";
 if ($to && $from) {
     // send newsletter to entered recipient
     $mail->AddAddress("{$to}");
     if ($cc) {
         $mail->AddCC("{$cc}");
     }
     if ($bcc) {
         $mail->AddBCC("{$bcc}");
     }
     if (!$mail->Send()) {
         echo "   <tr>\n";
         echo "    <td class=\"class3\">\n";
         echo "<b> There was an error sending the message to {$to} !!!</b>";
         echo "    </td>\n";
         echo "  </tr>\n";
     } else {
         echo "   <tr>\n";
         echo "    <td class=\"class3\">\n";
         echo "   <small>Mail to {$to} with subject: " . stripslashes($subject) . " -> <b>sent</b> !</small>";
         echo "    </td>\n";
         echo "  </tr>\n";
     }
     $mail->ClearAllRecipients();
开发者ID:BackupTheBerlios,项目名称:logixclassified-svn,代码行数:31,代码来源:admin.php

示例6: badwordsmail

 }
 if ($fromname && $fromemail && $toname && $toemail && $subject && $text) {
     // Send E-Mail
     if ($systext1) {
         $body = $systext1 . "\n" . $systext2 . "\n\n" . $sm_emailheader . badwordsmail($text) . $sm_emailfooter;
     } else {
         $body = $sm_emailheader . badwordsmail($text) . $sm_emailfooter;
     }
     $mail->From = "{$fromemail}";
     $mail->FromName = "{$fromname}";
     $mail->WordWrap = 75;
     $mail->UseMSMailHeaders = true;
     $mail->AddCustomHeader("X-Mailer: {$bazar_name} {$bazar_}#{$Id}\$- Email Interface");
     $mail->AddAddress("{$toemail}", "{$toname}");
     if ($cc) {
         $mail->AddBCC($fromemail, $fromname);
     }
     $mail->Subject = stripslashes($subject);
     if ($webmail_enable) {
         $mail->Body = addslashes($body);
         $mail->Subject = addslashes($subject);
     } else {
         $mail->Body = stripslashes($body);
         $mail->Subject = stripslashes($subject);
     }
     if ($pic1 != "none" && $pic1) {
         $mail->AddAttachment("{$pic1}", "{$pic1_name}");
     }
     if ($pic2 != "none" && $pic2) {
         $mail->AddAttachment("{$pic2}", "{$pic2_name}");
     }
开发者ID:BackupTheBerlios,项目名称:logixclassified-svn,代码行数:31,代码来源:sendmail.php

示例7: Send


//.........这里部分代码省略.........
     } else {
         $y = 1;
     }
     // si se deseára configurar los parametros de el dominio
     // y cuenta de correo default, aquí se recibirian los parámetros.
     $port = $this->port;
     $smtp_secure = $this->smtp_secure;
     $auth = $this->auth;
     $host = $this->host;
     $username = $this->username;
     $password = $this->password;
     $mail = new phpmailer();
     $mail->CharSet = 'UTF-8';
     $mail->Mailer = "smtp";
     $mail->IsSMTP();
     ini_set('max_execution_time', 600);
     $mail->SMTPAuth = true;
     // si se indica un puerto este se utilizara,
     // de lo contrario su usará el default.
     if (empty($port)) {
         $mail->Port = 465;
     } else {
         $mail->Port = $port;
     }
     // si se indica un tipo de seguridad este se utilizara,
     // de lo contrario su usará el default.
     if (empty($smtp_secure)) {
         $mail->SMTPSecure = 'ssl';
     } else {
         $mail->SMTPSecure = $smtp_secure;
     }
     // si se indica un cambio en la autenticación este se utilizara,
     // de lo contrario su usará el default.
     if (empty($auth)) {
         $mail->SMTPAuth = true;
     } else {
         $mail->SMTPAuth = $auth;
     }
     // si se indica un host este se utilizara,
     // de lo contrario su usará el default.
     if (empty($host)) {
         $mail->Host = "securemail.aplus.net";
     } else {
         $mail->Host = $host;
     }
     // si se indica un usuario este se utilizara,
     // de lo contrario su usará el default.
     if (empty($username)) {
         $mail->Username = "basededatos@globalcorporation.cc";
     } else {
         $mail->Username = $username;
     }
     // si se indica un password este se utilizara,
     // de lo contrario su usará el default.
     if (empty($password)) {
         $mail->Password = "kIU8a#4i";
     } else {
         $mail->Password = $password;
     }
     $mail->Subject = $subject;
     if ($def_from == 1) {
         $mail->SetFrom($from[1], $from[0]);
     } else {
         $mail->SetFrom('basededatos@globalcorporation.cc', 'Global Corporation');
     }
     if ($rp == 1) {
         $mail->AddReplyTo($replyto[1], $replyto[0]);
     }
     $mail->Body = " ";
     $mail->MsgHTML($body);
     if ($z == 2) {
         for ($a = 0; $a < count($attachment_r); $a++) {
             $mail->AddAttachment($attachment_r[$a], $attachment_t[$a]);
         }
     }
     if ($y == 2) {
         for ($a = 0; $a < count($embeddedimg_r); $a++) {
             $mail->AddEmbeddedImage($embeddedimg_r[$a], $embeddedimg_t[$a]);
         }
     }
     for ($i = 0; $i < count($to); $i++) {
         $a = $to[$i];
         $mail->AddAddress($a['direccion'], $a['nombre']);
     }
     for ($j = 0; $j < count($cc); $j++) {
         $a = $cc[$j];
         $mail->AddCC($a['direccion'], $a['nombre']);
     }
     for ($k = 0; $k < count($cco); $k++) {
         $a = $cco[$k];
         $mail->AddBCC($a['direccion'], $a['nombre']);
     }
     $mail->IsHTML(true);
     if ($mail->Send()) {
         return true;
     } else {
         $this->errors = "SEND_MAIL_ERROR " . $mail->ErrorInfo;
         return 0;
     }
 }
开发者ID:JesusHV,项目名称:restaurantes,代码行数:101,代码来源:Mailerclass.php

示例8: send


//.........这里部分代码省略.........
     //DBG::log("MailTemplate::send(): Substituted: ".var_export($arrTemplate, true));
     //echo("MailTemplate::send(): Substituted:<br /><pre>".nl2br(htmlentities(var_export($arrTemplate, true), ENT_QUOTES, CONTREXX_CHARSET))."</PRE><hr />");
     //die();//return true;
     // Use defaults for missing mandatory fields
     //        if (empty($arrTemplate['sender']))
     //            $arrTemplate['sender'] = $_CONFIG['coreAdminName'];
     if (empty($arrTemplate['from'])) {
         \DBG::log("MailTemplate::send(): INFO: Empty 'from:', falling back to config");
         $arrTemplate['from'] = $_CONFIG['coreAdminEmail'];
     }
     if (empty($arrTemplate['to'])) {
         \DBG::log("MailTemplate::send(): INFO: Empty 'to:', falling back to config");
         $arrTemplate['to'] = $_CONFIG['coreAdminEmail'];
     }
     //        if (empty($arrTemplate['subject']))
     //            $arrTemplate['subject'] = $_CORELANG['TXT_CORE_MAILTEMPLATE_NO_SUBJECT'];
     //        if (empty($arrTemplate['message']))
     //            $arrTemplate['message'] = $_CORELANG['TXT_CORE_MAILTEMPLATE_NO_MESSAGE'];
     $objMail->FromName = $arrTemplate['sender'];
     $objMail->From = $arrTemplate['from'];
     $objMail->Subject = $arrTemplate['subject'];
     $objMail->CharSet = CONTREXX_CHARSET;
     //        $objMail->IsHTML(false);
     if ($arrTemplate['html']) {
         $objMail->IsHTML(true);
         $objMail->Body = $arrTemplate['message_html'];
         $objMail->AltBody = $arrTemplate['message'];
     } else {
         $objMail->Body = $arrTemplate['message'];
     }
     foreach (preg_split('/\\s*,\\s*/', $arrTemplate['reply'], null, PREG_SPLIT_NO_EMPTY) as $address) {
         $objMail->AddReplyTo($address);
     }
     //        foreach (preg_split('/\s*,\s*/', $arrTemplate['to'], null, PREG_SPLIT_NO_EMPTY) as $address) {
     //            $objMail->AddAddress($address);
     //        }
     foreach (preg_split('/\\s*,\\s*/', $arrTemplate['cc'], null, PREG_SPLIT_NO_EMPTY) as $address) {
         $objMail->AddCC($address);
     }
     foreach (preg_split('/\\s*,\\s*/', $arrTemplate['bcc'], null, PREG_SPLIT_NO_EMPTY) as $address) {
         $objMail->AddBCC($address);
     }
     // Applicable to attachments stored with the MailTemplate only!
     $arrTemplate['attachments'] = self::attachmentsToArray($arrTemplate['attachments']);
     //DBG::log("MailTemplate::send(): Template Attachments: ".var_export($arrTemplate['attachments'], true));
     // Now the MailTemplates' attachments index is guaranteed to
     // contain an array.
     // Add attachments from the parameter array, if any.
     if (isset($arrField['attachments']) && is_array($arrField['attachments'])) {
         foreach ($arrField['attachments'] as $path => $name) {
             //                if (empty($path)) $path = $name;
             //                if (empty($name)) $name = basename($path);
             $arrTemplate['attachments'][$path] = $name;
             //DBG::log("MailTemplate::send(): Added Field Attachment: $path / $name");
         }
     }
     //DBG::log("MailTemplate::send(): All Attachments: ".var_export($arrTemplate['attachments'], true));
     foreach ($arrTemplate['attachments'] as $path => $name) {
         if (is_numeric($path)) {
             $path = $name;
         }
         $objMail->AddAttachment(ASCMS_DOCUMENT_ROOT . '/' . $path, $name);
     }
     $arrTemplate['inline'] = self::attachmentsToArray($arrTemplate['inline']);
     if ($arrTemplate['inline']) {
         $arrTemplate['html'] = true;
     }
     foreach ($arrTemplate['inline'] as $path => $name) {
         if (is_numeric($path)) {
             $path = $name;
         }
         $objMail->AddEmbeddedImage(ASCMS_DOCUMENT_ROOT . '/' . $path, uniqid(), $name);
     }
     if (isset($arrField['inline']) && is_array($arrField['inline'])) {
         $arrTemplate['html'] = true;
         foreach ($arrField['inline'] as $path => $name) {
             if (is_numeric($path)) {
                 $path = $name;
             }
             $objMail->AddEmbeddedImage(ASCMS_DOCUMENT_ROOT . '/' . $path, uniqid(), $name);
         }
     }
     //die("MailTemplate::send(): Attachments and inlines<br />".var_export($objMail, true));
     $objMail->CharSet = CONTREXX_CHARSET;
     $objMail->IsHTML($arrTemplate['html']);
     //DBG::log("MailTemplate::send(): Sending: ".nl2br(htmlentities(var_export($objMail, true), ENT_QUOTES, CONTREXX_CHARSET))."<br />Sending...<hr />");
     $result = true;
     foreach (preg_split('/\\s*;\\s*/', $arrTemplate['to'], null, PREG_SPLIT_NO_EMPTY) as $addresses) {
         $objMail->ClearAddresses();
         foreach (preg_split('/\\s*[,]\\s*/', $addresses, null, PREG_SPLIT_NO_EMPTY) as $address) {
             $objMail->AddAddress($address);
         }
         //DBG::log("MailTemplate::send(): ".var_export($objMail, true));
         // TODO: Comment for test only!
         $result &= $objMail->Send();
         // TODO: $objMail->Send() seems to sometimes return true on localhost where
         // sending the mail is actually impossible.  Dunno why.
     }
     return $result;
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:101,代码来源:MailTemplate.class.php


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