Ouverture Imap fonctionne pas en Cron
... / Ouverture Imap fonctionne...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Ouverture Imap fonctionne pas en Cron

by
LaguittonJ
Created on 2020-06-23 10:55:58 (edited on 2024-09-04 10:53:45) in Tâches automatiques (cron)

Bonjour,

Je lance une connexion avec imap_open en php pour me connecter au serveur de ovh,
cette connexion fonctionne en éxécution normale, mais ne fonctionne plus en mode "Cron"...
Voici le message que j'ai :

**Warning: imap_open(): Couldn't open stream {ssl0.ovh.net:143}INBOX.INBOX.Sent in /Dossier/fonctions.php on line 1421**

**Warning: imap_append() expects parameter 1 to be resource, bool given in /Dossier/fonctions.php on line 1423**

**Warning: imap_close() expects parameter 1 to be resource, bool given in /Dossier/fonctions.php on line 1425**

Avez vous déjà eu ce problème ?
Merci.


3 Replies ( Latest reply on 2020-07-21 07:57:02 by
fritz2cat officiel (d'avant la migration)
)


mode "Cron"...


Dans un cron sur le mutualisé OVH tu ne peux pas faire ce que tu veux, si on laisse tout ouvert il y en a qui abusent tout de suite.
Donc il est possible que la connexion vers ssl0.ovh.net:143 soit bloquée par un firewall.

Hello
Merci !

Tu penses que c'est possible de contourner ça totu en restant sécurisé ?


Tu penses que c'est possible


Peut-être en mettant ton script php dans ton hébergement web, et en invoquant cette page à partir du cron ?

Yes bien vu (y)

Facing same 1https://www.logiguard.com/mybkexperience/https://www.logiguard.com/mybkexperience/ !
I searched for the solution, i hope i can get some help here.
I there anything I can do on 1https://www.logiguard.com/https://www.logiguard.com/ ?


I there anything I can do on this?


Spammer !

Replies are currently disabled for this question.