Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 609 Rev 610
Línea 65... Línea 65...
65
        $this->translator = $translator;
65
        $this->translator = $translator;
Línea 66... Línea 66...
66
 
66
 
67
        parent::__construct();
67
        parent::__construct();
Línea 68... Línea 68...
68
    }
68
    }
69
 
69
 
70
    protected function execute($input, $output)
70
    protected function execute(InputInterface $input, OutputInterface $output): int
71
    {
71
    {
72
        $sandbox = $this->config['leaderslinked.runmode.sandbox'];
72
        $sandbox = $this->config['leaderslinked.runmode.sandbox'];
73
        if ($sandbox) {
73
        if ($sandbox) {
Línea 150... Línea 150...
150
                $phpMailer->Subject = $subject;
150
                $phpMailer->Subject = $subject;
151
                $phpMailer->Body = $message;
151
                $phpMailer->Body = $message;
152
                $phpMailer->AltBody = $message;
152
                $phpMailer->AltBody = $message;
153
                $phpMailer->CharSet = 'UTF-8';
153
                $phpMailer->CharSet = 'UTF-8';
Línea 154... Línea 154...
154
 
154
 
155
                try {
155
                try{
156
                    $result = $phpMailer->send();
156
                    $result = $phpMailer->send();
157
                } catch (\Exception $e) {
157
                } catch (\Exception $e) {
158
                    error_log('Error al enviar el email: ' . $e->getMessage());
158
                    $this->logger->error('Error al enviar el email: ' . $e->getMessage());
159
                    $result = false;
159
                    $result = false;
Línea 160... Línea 160...
160
                }
160
                }
161
 
161