Changeset 19 for trunk/expressoMail1_2


Ignore:
Timestamp:
04/27/07 17:25:27 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

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

    r16 r19  
    496496        if(count($bad_rcpt) > 0) // Create error message 
    497497        { 
    498                 $smtp_code_error = substr($this->smtp->error['smtp_msg'], 0, 5); 
     498            //Postfix version 2.3.8-2 
     499            $smtp_code_error = substr($this->smtp->error['smtp_msg'], 0, 5); 
     500            //Postfix version 2.1.5-9 
     501            $array_error = explode(":", $this->smtp->error['smtp_msg']); 
     502             
    499503            for($i = 0; $i < count($bad_rcpt); $i++) 
    500504            { 
     
    502506                $error .= $bad_rcpt[$i]; 
    503507            } 
    504             if ($smtp_code_error == '5.7.1') 
     508            if (($smtp_code_error == '5.7.1') || (trim($array_error[2]) == 'Access denied')) 
    505509                $error = $this->Lang("not_allowed") . $error; 
    506510            else 
Note: See TracChangeset for help on using the changeset viewer.