Proyectos de Subversion LeadersLinked - Services

Rev

Rev 610 | Rev 612 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 610 Rev 611
Línea 160... Línea 160...
160
                }
160
                }
Línea 161... Línea 161...
161
 
161
 
162
                if ($result) {
162
                if ($result) {
163
                    $emailCompleted ++;
163
                    $emailCompleted ++;
-
 
164
                    $email->status = Email::STATUS_COMPLETED;
164
                    $email->status = Email::STATUS_COMPLETED;
165
                    $this->logger->info('Email enviado correctamente: ' . $email->id . ' Resultado: ' . $result);
165
                } else {
166
                } else {
166
                    if ($email->tried == 2) {
167
                    if ($email->tried == 2) {
167
                        $emailError ++;
168
                        $emailError ++;
-
 
169
                        $email->status = Email::STATUS_ERROR;
168
                        $email->status = Email::STATUS_ERROR;
170
                        $this->logger->error('Email descartado: ' . $email->id . ' Resultado: ' . $result);
169
                    }
171
                    }
170
                    $email->tried ++;
172
                    $email->tried ++;
-
 
173
                }
171
                }
174
 
172
                $emailMapper->update($email);
175
                $emailMapper->update($email);
173
            }
176
            }
Línea 174... Línea 177...
174
        }
177
        }