Changeset 1638


Ignore:
Timestamp:
11/13/09 13:24:21 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #753 - Efetuada alteração para salvar Cco no rascunho.....

Location:
trunk/expressoMail1_2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r1630 r1638  
    22992299                $toaddress = $params['input_to']; 
    23002300                $ccaddress = $params['input_cc']; 
     2301                $ccoaddress = $params['input_cco']; 
    23012302                $subject = $params['input_subject']; 
    23022303                $msg_uid = $params['msg_id']; 
     
    23162317                $folder = @eregi_replace("INBOX.", "INBOX".$this->imap_delimiter, $folder); 
    23172318                // End Fix. 
    2318  
     2319                if(strtoupper($folder) == 'INBOX/DRAFTS') 
     2320                    { 
     2321                        $mail->SaveMessageAsDraft = $folder; 
     2322                    } 
    23192323                $mail->SaveMessageInFolder = $folder; 
    23202324                $mail->SMTPDebug = false; 
     
    23332337                $this->add_recipients("to", $toaddress, &$mail); 
    23342338                $this->add_recipients("cc", $ccaddress, &$mail); 
     2339                $this->add_recipients("cco", $ccoaddress, &$mail); 
    23352340                $mail->Subject = $subject; 
    23362341                $mail->IsHTML(true); 
  • trunk/expressoMail1_2/inc/class.phpmailer.php

    r1247 r1638  
    10201020        } 
    10211021 
     1022                $from = array(); 
     1023                $from[0][0] = trim($this->From); 
     1024                $from[0][1] = $this->FromName; 
     1025                $result .= $this->AddrAppend("From", $from); 
     1026/* 
    10221027                if (!$this->SaveMessageAsDraft){ 
    10231028                $from = array(); 
     
    10321037                $result .= $this->AddrAppend("Sender", $sender); 
    10331038                } 
    1034  
     1039*/ 
    10351040        // sendmail and mail() extract Bcc from the header before sending 
    10361041        if((($this->Mailer == "sendmail") || ($this->Mailer == "mail")) && (count($this->bcc) > 0)) 
    10371042            $result .= $this->AddrAppend("Bcc", $this->bcc); 
    1038  
     1043        if ($this->SaveMessageAsDraft){ 
     1044            $result .= $this->AddrAppend("Bcc", $this->bcc); 
     1045                } 
    10391046        if(count($this->ReplyTo) > 0) 
    10401047            $result .= $this->AddrAppend("Reply-to", $this->ReplyTo); 
     
    10771084        switch($this->message_type) 
    10781085        { 
    1079             case "plain": 
     1086            case "plain":$folder = mb_convert_encoding($folder, "UTF7-IMAP","ISO_8859-1"); 
    10801087                $result .= $this->HeaderLine("Content-Transfer-Encoding", $this->Encoding); 
    10811088                $result .= sprintf("Content-Type: %s; charset=\"%s\"", 
  • trunk/expressoMail1_2/js/draw_api.js

    r1637 r1638  
    15731573                cco_values.id = "cco_values_"+ID; 
    15741574                cco_values.type = "hidden"; 
    1575                 cco_values.value = info_msg.cco; 
     1575                cco_values.value = info_msg.bcc; 
    15761576 
    15771577                ccoaddress_array[ID] = info_msg.bcc.split(",");          
  • trunk/expressoMail1_2/js/main.js

    r1635 r1638  
    945945                data.cc = data.cc.replace(/&lt;/gi,"<"); 
    946946                data.cc = data.cc.replace(/&gt;/gi,">"); 
     947        } 
     948        if (document.getElementById("cco_" + border_ID)){ 
     949                data.cco = document.getElementById("cco_values_" + border_ID).value; 
     950                data.cco = data.cco.replace(/&lt;/gi,"<"); 
     951                data.cco = data.cco.replace(/&gt;/gi,">"); 
    947952        } 
    948953        if (document.getElementById("subject_" + border_ID)) 
     
    12711276                                Element("tr_cc_"+ new_border_ID).style.display = ''; 
    12721277                        } 
     1278                        if (data.cco){ 
     1279                                Element("cco_" + new_border_ID).value = data.cco; 
     1280                                Element("space_link_" + new_border_ID).style.display = 'none'; 
     1281                                Element("a_cco_link_" + new_border_ID).style.display = 'none'; 
     1282                                Element("tr_cco_"+ new_border_ID).style.display = ''; 
     1283                        } 
    12731284                        Element("subject_" + new_border_ID).value = data.subject; 
    12741285                         
Note: See TracChangeset for help on using the changeset viewer.