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


PHP Mail::Subject方法代码示例

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


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

示例1: goContact

 public function goContact()
 {
     include_once "libmail.php";
     $m = new Mail();
     $m->From($this->email . ';admin@mir-it.info');
     $m->To(array('admin@mir-it.info', 'dimchazhabin@mail.ru', 'sszhukov@live.ru', 'firstalexxx@gmail.com'));
     $m->Subject($this->subject);
     $m->Body('Отправитель: ' . $this->name . '. ' . $this->text);
     $m->Send();
 }
开发者ID:postfx,项目名称:fermion,代码行数:10,代码来源:_ContactForm.php

示例2: sendMail

 /**
  * 
  * 
  * @param 
  * @access public
  * @return void 
  */
 function sendMail()
 {
     $m = new Mail();
     // create the mail
     $m->From('noreply@webtod.com');
     $m->To('davtouzet@free.fr');
     $m->Subject('test mail');
     $marker = array('content' => 'owi trop fat ca fonctionne');
     $message = $this->template->nestedMarkerArray($marker, 'MAIL_PART');
     $m->Body($message, 'utf-8');
     // set the body
     $m->Cc('dtouzet@mtpi.fr');
     $m->Priority(4);
     // set the priority to Low
     $m->Send();
     // send the mail
     var_dump('send');
 }
开发者ID:BGCX067,项目名称:eyocms-svn-to-git,代码行数:25,代码来源:m_default.php

示例3: sendNewPass

function sendNewPass()
{
    global $AppUI;
    $_live_site = dPgetConfig('base_url');
    $_sitename = dPgetConfig('company_name');
    // ensure no malicous sql gets past
    $checkusername = trim(dPgetParam($_POST, 'checkusername', ''));
    $checkusername = db_escape($checkusername);
    $confirmEmail = trim(dPgetParam($_POST, 'checkemail', ''));
    $confirmEmail = mb_strtolower(db_escape($confirmEmail));
    $q = new DBQuery();
    $q->addTable('users', 'u');
    $q->addQuery('u.user_id');
    $q->addWhere('user_username=\'' . $checkusername . '\' AND LOWER(contact_email)=\'' . $confirmEmail . '\'');
    $q->leftJoin('contacts', 'c', 'u.user_contact = c.contact_id');
    if (!($user_id = $q->loadResult()) || !$checkusername || !$confirmEmail) {
        $AppUI->setMsg('Invalid username or email.', UI_MSG_ERROR);
        $AppUI->redirect();
    }
    $newpass = makePass();
    $message = $AppUI->_('sendpass0', UI_OUTPUT_RAW) . ' ' . $checkusername . ' ' . $AppUI->_('sendpass1', UI_OUTPUT_RAW) . ' ' . $_live_site . ' ' . $AppUI->_('sendpass2', UI_OUTPUT_RAW) . ' ' . $newpass . ' ' . $AppUI->_('sendpass3', UI_OUTPUT_RAW);
    $subject = "{$_sitename} :: " . $AppUI->_('sendpass4', UI_OUTPUT_RAW) . " - {$checkusername}";
    $m = new Mail();
    // create the mail
    $m->From("dotProject@" . dPgetConfig('site_domain'));
    $m->To($confirmEmail);
    $m->Subject($subject);
    $m->Body($message, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
    // set the body
    $m->Send();
    // send the mail
    $newpass = md5($newpass);
    $q->clear();
    $q->addTable('users');
    $q->addUpdate('user_password', $newpass, true);
    $q->addWhere('user_id=\'' . $user_id . '\'');
    $cur = $q->exec();
    if (!$cur) {
        die('SQL error' . $database->stderr(true));
    } else {
        $AppUI->setMsg('New User Password created and emailed to you');
        $AppUI->redirect();
    }
}
开发者ID:222elm,项目名称:dotprojectFrame,代码行数:44,代码来源:sendpass.php

示例4: actionSendMail

 public function actionSendMail()
 {
     $model = new MailForm();
     if (isset($_POST['MailForm'])) {
         $model->attributes = $_POST['MailForm'];
     }
     $validator = new CEmailValidator();
     if ($validator->validateValue($model->to) && $validator->validateValue($model->from)) {
         $m = new Mail();
         // create the mail
         $m->From($model->from);
         $m->To($model->to);
         $m->Subject(Yii::app()->params['appName']);
         $m->Body($model->body, "utf-8");
         //$m->Attach ($_SERVER['DOCUMENT_ROOT'] . "/fb/hannah/soutez-o-stan/images/2011_223_0444_POUKAZKA_NA_FB_stan_spacak_triko_03.jpg", "image/jpg", "attachment", "2011_223_0444_POUKAZKA_NA_FB_stan_spacak_triko_03.jpg"); // attach toto.gif file as fun.gif
         $m->Send();
         echo "1";
     } else {
         echo "0";
     }
 }
开发者ID:rjuppa,项目名称:viral_startup,代码行数:21,代码来源:AjaxController.php

示例5: notifyModerators

function notifyModerators($id, $page, $text, $userName, $name, $product, $moderators)
{
    $template = new Template("./templates/newCommentToModerate.html");
    $productTranslate = defined("__PRODUCT_NAME__") ? __PRODUCT_NAME__ : $product;
    $subject = "[" . $productTranslate . "] " . Utils::translate('newCommentToModerate');
    if (defined('__MODERATE__') && !__MODERATE__) {
        $template = new Template("./templates/newUnmoderatedComment.html");
        $subject = "[" . $productTranslate . "] " . Utils::translate('newUnmoderatedCommentAdded');
    }
    $subject .= " [" . $page . "]";
    $ca = base64_encode($id . "&approved");
    $cr = base64_encode($id . "&deleted");
    $confirmationMsg = $template->replace(array("page" => __BASE_URL__ . $page . "#" . $id, "text" => $text, "userName" => $userName, "user" => $name, "productName" => $productTranslate, "aproveLink" => __BASE_URL__ . "oxygen-webhelp/resources/moderate.html?c=" . $ca, "deleteLink" => __BASE_URL__ . "oxygen-webhelp/resources/moderate.html?c=" . $cr));
    foreach ($moderators as $key => $value) {
        $mail = new Mail();
        $mail->Subject($subject);
        $mail->To($value);
        $mail->From(__EMAIL__);
        $mail->Body($confirmationMsg);
        $mail->Send();
    }
}
开发者ID:aidanreilly,项目名称:documentation,代码行数:22,代码来源:comment.php

示例6: creaPDF

    function creaPDF(){
        $html = $this->input->post("html");
        $nombreNino = $this->input->post("nombreNino");
        $nombrePadrino = $this->input->post("nombrePadrino");
	     $idNino = $this->input->post("idParino");
        $idPadrino = $this->input->post("idNino");
		  $nombreArchivo = $idNino."-".$idPadrino.".pdf";
        $img = $this->input->post("img");

        $cabecera = '<div><img src="http://yosoypadrinovapormicuenta.com/media/img/logovxmc.png" style="float:left">';
        $cabecera = $cabecera.'<img src="http://yosoypadrinovapormicuenta.com/media/img/logoalsea.png" style="float:right"></div><br><br>';
        $para = '<div><br> Para:'.$nombreNino.'<br><br></div>';
        $de = '<div style="text-align:center;"><br>Atte:<br>'.$nombrePadrino.'</div>';
        $footer = '<div style="position: absolute; text-align: center; width: 90%; bottom: 10px; width: 90%;"><img src="http://yosoypadrinovapormicuenta.com/media/img/'.$img.'" style="vertical-align:bottom; float:right; margin-top:-30px"></div>';
		$this->apadrina_modelo->agregaMovimiento($idPadrino, $idNino, -1, -1, "carta");
        $mpdf=new mPDF();
		  $mpdf->WriteHTML($cabecera.$para.$html.$de.$footer);
        $mpdf->Output(FCPATH.'cartas/'.$nombreArchivo,'F');
        //$mpdf->WriteHTML($cabecera.$para.$html.$de.$footer);
        //$mpdf->Output(FCPATH.'cartas/filename2.pdf','F');
        chmod(FCPATH.'cartas/filename2.pdf', 0777);
        $m = new Mail();
        $m->From("Yo soy padrino 'Va por mi cuenta'" . " <" . "anjudark89@gmail.com" . ">");
        $m->To('vapormicuenta@alsea.com.mx, alsea@deklan.net, anjudark89@gmail.com');
		  //$m->To('osvaldo172@gmail.com, alsea@deklan.net, anjudark89@gmail.com');
        $m->Subject("Nueva Carta");
        $m->attach(FCPATH.'cartas/'.$nombreArchivo);
        $m->Body("Nueva carta de $nombrePadrino");
        if($m->Send()){
            redirect("carta/cartaEnviada");
        }
        else{
            $response = "Mensaje no enviado";
        }
        echo $response;
        //$mpdf->Output();
        exit;
        return true;
    }
开发者ID:NallelyFlores89,项目名称:va-por-mi-cuenta,代码行数:39,代码来源:carta.php

示例7: everyMin

 function everyMin()
 {
     global $ADMIN_EMAIL, $PRJ_DIR;
     $this->tables['lists']->selectWhere('TO_DAYS(date) <= TO_DAYS(NOW())');
     if ($a = $this->tables['lists']->getNextArray()) {
         inc_lib('libmail.php');
         $m = new Mail();
         $m->From($ADMIN_EMAIL);
         $m->Subject($a['subj']);
         $m->SetCharset('UTF-8');
         $m->Html($a['body']);
         if (is_file($PRJ_DIR . $a['file'])) {
             $m->AttachFile($PRJ_DIR . $a['file']);
         }
         $this->tables['users']->select(array('where' => "is_active='on'"));
         while ($a2 = $this->tables['users']->getNextArray()) {
             $m->To(array($a2['email']));
             $m->Send();
         }
         $this->tables['lists']->delete('id=' . $a['id']);
         @unlink($PRJ_DIR . $a['file']);
     }
 }
开发者ID:rawork,项目名称:colors-life,代码行数:23,代码来源:MaillistUnit.php

示例8: sendNewPass

function sendNewPass()
{
    global $AppUI;
    $_live_site = dPgetConfig('base_url');
    $_sitename = dPgetConfig('company_name');
    // ensure no malicous sql gets past
    $checkusername = trim(dPgetParam($_POST, 'checkusername', ''));
    $checkusername = db_escape($checkusername);
    $confirmEmail = trim(dPgetParam($_POST, 'checkemail', ''));
    $confirmEmail = mb_strtolower(db_escape($confirmEmail));
    $query = 'SELECT user_id FROM users LEFT JOIN contacts ON user_contact = contact_id' . " WHERE user_username='{$checkusername}' AND LOWER(contact_email)='{$confirmEmail}'";
    if (!($user_id = db_loadResult($query)) || !$checkusername || !$confirmEmail) {
        $AppUI->setMsg('Invalid username or email.', UI_MSG_ERROR);
        $AppUI->redirect();
    }
    $newpass = makePass();
    $message = $AppUI->_('sendpass0', UI_OUTPUT_RAW) . ' ' . $checkusername . ' ' . $AppUI->_('sendpass1', UI_OUTPUT_RAW) . ' ' . $_live_site . ' ' . $AppUI->_('sendpass2', UI_OUTPUT_RAW) . ' ' . $newpass . ' ' . $AppUI->_('sendpass3', UI_OUTPUT_RAW);
    $subject = "{$_sitename} :: " . $AppUI->_('sendpass4', UI_OUTPUT_RAW) . " - {$checkusername}";
    $m = new Mail();
    // create the mail
    $m->From("dotProject@" . dPgetConfig('site_domain'));
    $m->To($confirmEmail);
    $m->Subject($subject);
    $m->Body($message, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
    // set the body
    $m->Send();
    // send the mail
    $newpass = md5($newpass);
    $sql = "UPDATE users SET user_password='{$newpass}' WHERE user_id='{$user_id}'";
    $cur = db_exec($sql);
    if (!$cur) {
        die('SQL error' . $database->stderr(true));
    } else {
        $AppUI->setMsg('New User Password created and emailed to you');
        $AppUI->redirect();
    }
}
开发者ID:illuminate3,项目名称:dotproject,代码行数:37,代码来源:sendpass.php

示例9:

      <p>телефон.:'.$cl_phone.'</p>
      <br>
      <p>Источник.:'.$referer.'</p>
      <p>Фраза.:'.$phrase.'</p>
    </body>
</html>
';

$m= new Mail; // начинаем 
$m->From( "info@intop.kz" ); // от кого отправляется почта 


$m->To( "sg1144@mail.ru" );


$m->Subject( "Заявка с сайта newlanding" );
$m->Body( $message, "html" );    
$m->Priority(3) ;    // приоритет письма

$m->smtp_on( "cp17.skilltex.kz", "info@intop.kz", "123456aa" ) ; // если указана эта команда, отправка пойдет через SMTP 
$m->Send();    // а теперь пошла отправка
if (1==1) {
     ?>
    <!-- <script>
       window.alert("Сообщение отправлено!");
    </script>\ -->


    <?php
//error_reporting();
开发者ID:victorshkoda,项目名称:newlanding,代码行数:30,代码来源:contact.php

示例10: notifyContacts

 function notifyContacts()
 {
     global $AppUI, $dPconfig, $locale_char_set;
     //if no project specified than we will not do anything
     if ($this->file_project != 0) {
         $project = new CProject();
         $project->load($this->file_project);
         $mail = new Mail();
         if (intval($this->file_task) != 0) {
             //notify task contacts
             $task = new CTask();
             $task->load($this->file_task);
             $mail->Subject($project->project_name . '::' . $task->task_name . '::' . $this->file_name, $locale_char_set);
         } else {
             //notify project contacts
             $mail->Subject($project->project_name . '::' . $this->file_name, $locale_char_set);
         }
         $body = $AppUI->_('Project') . ': ' . $project->project_name;
         $body .= "\n" . $AppUI->_('URL') . ': ' . DP_BASE_URL . '/index.php?m=projects&amp;a=view&amp;project_id=' . $this->file_project;
         $users = array();
         if (intval($this->file_task) != 0) {
             $body .= "\n\n" . $AppUI->_('Task') . ': ' . $task->task_name;
             $body .= "\n" . $AppUI->_('URL') . ': ' . DP_BASE_URL . '/index.php?m=tasks&amp;a=view&amp;task_id=' . $this->file_task;
             $body .= "\n" . $AppUI->_('Description') . ":\n" . $task->task_description;
             $this->_query->clear();
             $this->_query->addTable('project_contacts', 'pc');
             $this->_query->addJoin('contacts', 'c', 'c.contact_id = pc.contact_id');
             $this->_query->addQuery('c.contact_email as contact_email' . ', c.contact_first_name as contact_first_name' . ', c.contact_last_name as contact_last_name');
             $this->_query->addWhere('pc.project_id = ' . $this->file_project);
             $pc_users = $this->_query->loadList();
             $this->_query->clear();
             $this->_query->addTable('task_contacts', 'tc');
             $this->_query->addJoin('contacts', 'c', 'c.contact_id = tc.contact_id');
             $this->_query->addQuery('c.contact_email as contact_email' . ', c.contact_first_name as contact_first_name' . ', c.contact_last_name as contact_last_name');
             $this->_query->addWhere('tc.task_id = ' . $this->file_task);
             $tc_users = $this->_query->loadList();
             $this->_query->clear();
             $users = array_merge($pc_users, $tc_users);
         } else {
             $this->_query->addTable('project_contacts', 'pc');
             $this->_query->addJoin('contacts', 'c', 'c.contact_id = pc.contact_id');
             $this->_query->addQuery('c.contact_email as contact_email' . ', c.contact_first_name as contact_first_name' . ', c.contact_last_name as contact_last_name');
             $this->_query->addWhere('pc.project_id = ' . $this->file_project);
             $users = $this->_query->loadList();
             $this->_query->clear();
         }
         $body .= "\n\nFile " . $this->file_name . ' was ' . $this->_message . ' by ' . $AppUI->user_first_name . ' ' . $AppUI->user_last_name;
         if ($this->_message != 'deleted') {
             $body .= "\n" . $AppUI->_('URL') . ': ' . DP_BASE_URL . '/fileviewer.php?file_id=' . $this->file_id;
             $body .= "\n" . $AppUI->_('Description') . ":\n" . $this->file_description;
             if ($this->file_co_reason != '') {
                 $body .= "\n" . $AppUI->_('Checkout Reason') . ':' . "\n" . $this->file_co_reason;
             }
         }
         // send mail
         $mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : '');
         $mail->From('"' . $AppUI->user_first_name . ' ' . $AppUI->user_last_name . '" <' . $AppUI->user_email . '>');
         foreach ($users as $row) {
             if ($mail->ValidEmail($row['contact_email'])) {
                 $mail->To($row['contact_email'], true);
                 $mail->Send();
             }
         }
     }
     return '';
 }
开发者ID:hoodoogurus,项目名称:dotprojecteap,代码行数:66,代码来源:files.class.php

示例11: notifyNewUser

function notifyNewUser($address, $username, $logname, $logpwd)
{
    global $AppUI, $dPconfig;
    $mail = new Mail();
    if ($mail->ValidEmail($address)) {
        if ($mail->ValidEmail($AppUI->user_email)) {
            $email = $AppUI->user_email;
        } else {
            $email = 'dotproject@' . $AppUI->cfg['site_domain'];
        }
        $name = $AppUI->user_first_name . ' ' . $AppUI->user_last_name;
        $body = $username . ',
		
An access account has been created for you in our dotProject project management system.

You can access it here at ' . $dPconfig['base_url'] . '

Your username is: ' . $logname . '
Your password is: ' . $logpwd . '

This account will allow you to see and interact with projects. If you have any questions please contact us.';
        $mail->From('"' . $name . '" <' . $email . '>');
        $mail->To($address);
        $mail->Subject('New Account Created - dotProject Project Management System');
        $mail->Body($body);
        $mail->Send();
    }
}
开发者ID:hoodoogurus,项目名称:dotprojecteap,代码行数:28,代码来源:do_user_aed.php

示例12: defined

 if ($days > 7) {
     $toReturn->set("error", true);
     $toReturn->set("msg", "Confirmation code expired!");
 } else {
     $productTranslate = defined("__PRODUCT_NAME__") ? __PRODUCT_NAME__ : $_POST['productName'];
     if ($action == "recover") {
         $email = $id;
         $userName = $user->changePassword($email, $newPassword);
         if ($userName != "") {
             $template = new Template("./templates/" . __LANGUAGE__ . "/recover.html");
             $confirmationMsg = $template->replace(array("username" => $userName, "password" => $newPassword, "productName" => $productTranslate));
             //
             // 				$confirmationMsg = "Your generated password form username '".$userName."' is '".$newPassword."'";
             // 				$confirmationMsg.="<br/>Thank you !";
             $mail = new Mail();
             $mail->Subject("[" . $productTranslate . "] " . $translate['RecoveredEmailSubject']);
             $mail->To($email);
             $mail->From(__EMAIL__);
             $mail->Body($confirmationMsg);
             $mail->Send();
             $toReturn->set("error", false);
             $toReturn->set("msg", Utils::translate('passwordChanged'));
         } else {
             $toReturn->set("error", true);
             $toReturn->set("msg", Utils::translate("signUp.invalidPswd"));
         }
     } else {
         // 			echo print_r($_SESSION,false);
         if ($user->confirmUser($id)) {
             $pName = isset($_POST['productName']) ? $_POST['productName'] : "";
             $pVersion = isset($_POST['productVersion']) ? $_POST['productVersion'] : "";
开发者ID:phoenix-mossimo,项目名称:BTS-Manual,代码行数:31,代码来源:confirmUser.php

示例13: sendWatchMail

 function sendWatchMail($debug = false)
 {
     global $AppUI, $debug, $dPconfig;
     $subj_prefix = $AppUI->_('forumEmailSubj', UI_OUTPUT_RAW);
     $body_msg = $AppUI->_('forumEmailBody', UI_OUTPUT_RAW);
     // Get the message from details.
     $q = new DBQuery();
     $q->addTable('users', 'u');
     $q->addQuery('contact_email, contact_first_name, contact_last_name');
     $q->addJoin('contacts', 'con', 'contact_id = user_contact');
     $q->addWhere("user_id = '{$this->message_author}'");
     $res = $q->exec();
     if ($row = db_fetch_assoc($res)) {
         $message_from = "{$row['contact_first_name']} {$row['contact_last_name']} <{$row['contact_email']}>";
     } else {
         $message_from = "Unknown user";
     }
     // Get the forum name;
     $q->clear();
     $q->addTable('forums');
     $q->addQuery('forum_name');
     $q->addWhere("forum_id = '{$this->message_forum}'");
     $res = $q->exec();
     if ($row = db_fetch_assoc($res)) {
         $forum_name = $row['forum_name'];
     } else {
         $forum_name = 'Unknown';
     }
     // SQL-Query to check if the message should be delivered to all users (forced)
     // In positive case there will be a (0,0,0) row in the forum_watch table
     $q->clear();
     $q->addTable('forum_watch');
     $q->addQuery('*');
     $q->addWhere('watch_user = 0 AND watch_forum = 0 AND watch_topic = 0');
     $resAll = $q->exec();
     $AllCount = db_num_rows($resAll);
     $q->clear();
     $q->addTable('users');
     $q->addQuery('DISTINCT contact_email, user_id, contact_first_name, contact_last_name');
     $q->addJoin('contacts', 'con', 'contact_id = user_contact');
     if ($AllCount < 1) {
         $q->addTable('forum_watch');
         $q->addWhere("user_id = watch_user\n\t\t\t\tAND (watch_forum = {$this->message_forum} OR watch_topic = {$this->message_parent})");
     }
     if (!($res = $q->exec())) {
         $q->clear();
         return;
     }
     if (db_num_rows($res) < 1) {
         return;
     }
     $mail = new Mail();
     $mail->Subject("{$subj_prefix} {$this->message_title}", isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
     $body = "{$body_msg}";
     $body .= "\n\n" . $AppUI->_('Forum', UI_OUTPUT_RAW) . ": {$forum_name}";
     $body .= "\n" . $AppUI->_('Subject', UI_OUTPUT_RAW) . ": {$this->message_title}";
     $body .= "\n" . $AppUI->_('Message From', UI_OUTPUT_RAW) . ": {$message_from}";
     $body .= "\n\n" . DP_BASE_URL . '/index.php?m=forums&a=viewer&forum_id=' . $this->message_forum;
     $body .= "\n\n{$this->message_body}";
     $mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
     $mail->From($AppUI->_('forumEmailFrom', UI_OUTPUT_RAW));
     $perms =& $AppUI->acl();
     while ($row = db_fetch_assoc($res)) {
         if ($mail->ValidEmail($row['contact_email']) && $perms->checkLogin($row['user_id'])) {
             $mail->To($row['contact_email'], true);
             $mail->Send();
         }
     }
     $q->clear();
     return;
 }
开发者ID:illuminate3,项目名称:dotproject,代码行数:71,代码来源:forums.class.php

示例14: sendInternal

 private function sendInternal($fetchEmails = true)
 {
     if ($this->sendIt) {
         if ($fetchEmails) {
             $this->getEmails();
         }
         foreach ($this->to as $emailTo) {
             $mail = new Mail();
             $mail->Subject("[" . $_SERVER["SERVER_NAME"] . "] ERROR ");
             $mail->To($emailTo);
             $mail->From(__EMAIL__);
             $mail->Body($this->bag);
             @$mail->Send();
         }
     }
     error_log($this->bag);
 }
开发者ID:phoenix-mossimo,项目名称:BTS-Manual,代码行数:17,代码来源:OxyBagHandler.php

示例15: array

$accepted_phaseID_arr = array(1 => "", 2 => "", 3 => "", 4 => "");
authentication($header, $accepted_privilegeID_arr, $accepted_phaseID_arr, $homepage, $php_root_path, $GLOBALS["DB_PREFIX"], &$err_message);
$arrEmailInfo =& $_SESSION["arrEmailInfo"];
$arrAttachmentInfo =& $_SESSION["arrAttachmentInfo"];
//Call the function to get the conference information
$conferenceInfo = get_conference_info();
if ($_POST["Submit"] == "Confirm") {
    $arrEmails = get_emails($arrEmailInfo["to"]);
    //Create the instance  of mail
    $mail = new Mail();
    $mail->Organization($conferenceInfo->ConferenceCodeName);
    $mail->ReplyTo($conferenceInfo->ConferenceContact);
    $mail->From("admin@webcomments.com");
    //		$mail -> To($arrEmails);
    $mail->To("thu_ya@hotmail.com");
    $mail->Subject(stripslashes(trim($arrEmailInfo["subject"])));
    $mail->Body(stripslashes(trim($arrEmailInfo["content"])));
    if ($arrEmailInfo["cc"] != "") {
        $mail->Cc($arrEmailInfo["cc"]);
    }
    if ($arrEmailInfo["bcc"] != "") {
        $mail->Bcc($arrEmailInfo["bcc"]);
    }
    if (!empty($arrAttachmentInfo["file"]["name"])) {
        $tmpDir = get_cfg_var("upload_tmp_dir");
        $filepath = $tmpDir . "/" . $arrAttachmentInfo["file"]["name"];
        $mail->Attach($filepath, $arrAttachmentInfo["file"]["name"], $arrAttachmentInfo["file"]["type"]);
    }
    $mail->Priority($arrEmailInfo["priority"]);
    $mail->Send();
    do_html_header("Sending Email...");
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:process_bulk_email.php


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