Changeset 7655 for trunk/expressoMail1_2/inc/class.phpmailer.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.phpmailer.php
r5509 r7655 472 472 function MailSend($header, $body) { 473 473 $to = ""; 474 for($i = 0; $i < count($this->to); $i++)474 for($i = 0; $i < count($this->to); ++$i) 475 475 { 476 476 if($i != 0) { $to .= ", "; } … … 533 533 534 534 // Attempt to send attach all recipients 535 for($i = 0; $i < count($this->to); $i++)535 for($i = 0; $i < count($this->to); ++$i) 536 536 { 537 537 if(!$this->smtp->Recipient($this->to[$i][0])) 538 538 $bad_rcpt[] = $this->to[$i][0]; 539 539 } 540 for($i = 0; $i < count($this->cc); $i++)540 for($i = 0; $i < count($this->cc); ++$i) 541 541 { 542 542 if(!$this->smtp->Recipient($this->cc[$i][0])) 543 543 $bad_rcpt[] = $this->cc[$i][0]; 544 544 } 545 for($i = 0; $i < count($this->bcc); $i++)545 for($i = 0; $i < count($this->bcc); ++$i) 546 546 { 547 547 if(!$this->smtp->Recipient($this->bcc[$i][0])) … … 564 564 $array_error = explode(":", $this->smtp->error['smtp_msg']); 565 565 566 for($i = 0; $i < count($bad_rcpt); $i++)566 for($i = 0; $i < count($bad_rcpt); ++$i) 567 567 { 568 568 if($i != 0) { $error .= ", "; } … … 765 765 $connection = true; 766 766 } 767 $index++;767 ++$index; 768 768 } 769 769 if(!$connection) … … 826 826 if(count($addr) > 1) 827 827 { 828 for($i = 1; $i < count($addr); $i++)828 for($i = 1; $i < count($addr); ++$i) 829 829 $addr_str .= ", " . $this->AddrFormat($addr[$i]); 830 830 } … … 867 867 $line = explode($this->LE, $message); 868 868 $message = ""; 869 for ($i=0 ;$i < count($line); $i++)869 for ($i=0 ;$i < count($line); ++$i) 870 870 { 871 871 $line_part = explode(" ", $line[$i]); … … 1031 1031 1032 1032 // Add custom headers 1033 for($index = 0; $index < count($this->CustomHeader); $index++)1033 for($index = 0; $index < count($this->CustomHeader); ++$index) 1034 1034 { 1035 1035 $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]), … … 1265 1265 1266 1266 // Add all attachments 1267 for($i = 0; $i < count($this->attachment); $i++)1267 for($i = 0; $i < count($this->attachment); ++$i) 1268 1268 { 1269 1269 // Check for string attachment … … 1540 1540 function InlineImageExists() { 1541 1541 $result = false; 1542 for($i = 0; $i < count($this->attachment); $i++)1542 for($i = 0; $i < count($this->attachment); ++$i) 1543 1543 { 1544 1544 if($this->attachment[$i][6] == "inline")
Note: See TracChangeset
for help on using the changeset viewer.