Development

Changeset 21758

You must first sign up to be able to contribute.

Changeset 21758

Show
Ignore:
Timestamp:
09/07/09 21:13:04 (4 years ago)
Author:
broesch
Message:

bugfix with smtp connection

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/seSwiftMailerPlugin/lib/SmtpMail.class.php

    r21176 r21758  
    2424      $sender=sfConfig::get('app_mail_user'); 
    2525      $pass=sfConfig::get('app_mail_pass'); 
    26       var_dump($sender); 
    2726    } 
    2827     
     
    3938    { 
    4039      $connection->setPassword($options['pass']); 
     40       
     41      if(isset($options['user'])&&$options['user']) 
     42      { 
     43        $connection->setUsername($options['pass']); 
     44      } 
     45      else 
     46      { 
     47        $connection->setUsername($sender); 
     48      } 
    4149    } 
    42      
    4350    return $connection; 
    4451  }