$this->SwiftMailer->connection = 'native'; if($this->SwiftMailer->connect()) { // .. }