Error sending mail from web hosting
... / Error sending mail from w...
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

Error sending mail from web hosting

by
AymericA
Created on 2020-09-25 10:06:05 (edited on 2024-09-04 14:23:01) in MX Plan

Hello everybody.
I state that I am using Laravel and that from the local it all works correctly.
when I try to send an email with a php script it gives me the following error:
Connection could not be established with host smtp.autoscuolegentile.it: stream_socket_client (): unable to connect to smtp.xxxxxxx.it:25 (Connection timed out).

the configuration of the .env file:
MAIL_MAILER = smtp
MAIL_HOST = smtp.xxxxxxx.it
MAIL_PORT = 25
MAIL_USERNAME=xxxxx@xxxxxx.it
MAIL_PASSWORD = xxxxxx;
MAIL_ENCRYPTION = null
MAIL_FROM_ADDRESS=xxxxx@xxxxxx.it
MAIL_FROM_NAME = "$ {APP_NAME}"

thank you


Replies are currently disabled for this question.