Scheduler Laravel 5.2

Asked

Viewed 42 times

0

Good evening. I use the Scheduler of Laravel 5.2 for sending emails and now I have a problem. Until Friday I could send the emails with subscription in img normally, but on Friday night we migrate our servers and use the PHP 5.6.9 (previous era 5.5.9), so signature emails are no longer sent. Someone can help me?

Page code:

<html>
    <head></head>
    <body>
        Bom dia.<br>
        Seguem anexos os relat&oacute;rios de tempos an&aacute;liticos e desempenho dos operadores da sua equipe em rela&ccedil;&atilde;o ao dia anterior.<br>
        Qualquer d&uacute;vida favor entrar em contato com a equipe de estrat&eacute;gia.<br><br>

        <img src="<?php echo $message->embed('https://intranet.goesnicoladelli.net/imagens/assinatura_intranet.png'); ?>">
    </body>
</html>

Error reported when executing the CRON

[Swift_IoException]  Unable to open file for reading [https://intranet.goesnicoladelli.net/imagens/assinatura_intranet.png]

1 answer

1


The problem is that the code is trying to capture the image "https://intranet.goesnicoladelli.net/imagens/assinatura_intranet.png", but her address is invalid.

curl -I https://intranet.goesnicoladelli.net/imagens/assinatura_intranet.png

curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

The problem is the connection HTTPS, because the certificate is invalid.

To fix you need the valid address or download it and turn it into Base64

  • Correct. Strange that was working until the migration... I believe that some permission was broken.. Thanks

  • I’ve just arrived at the service, I’ll make the changes now. But I believe that’s right..

Browser other questions tagged

You are not signed in. Login or sign up in order to post.