Errore 542, l'invio del messaggio non è consentito durante l'invio della posta.

Procédure

Perché si verifica questo errore?

Questo errore si verifica quando l'indirizzo e-mail inserito nel codice non è autorizzato a inviare e-mail dal server SMTP.

Come posso risolvere questo problema?

Per inviare un'e-mail in PHP, tramite un modulo, è necessario utilizzare il seguente codice:

 <  $from  >$to = "test@test.com"; $from = "test@votredomaine.com"; $entete = "MIME-Version: 1.0"; $entete .= "Content-type: text/html; charset=iso-8859-1\r\n"; $entete .= "From: $from\r\n"; $entete .= "Reply-to: $from\r\n"; $entete .= "X-Mailer: <  $from  > PHP\r\n"; $entete .= "X-Priority: 1\r\n"; $entete .= "Return-Path: \r\n"; $msg = "test\r\n"; $sujet = "*** Test Mail ***\r\n"; $res = (mail($to,$sujet,$msg,$entete)); if (true === $res) { $texte = "Mail inviata a"".$to."\n"; printf (nl2br("$texte")); } else { $texte = "**** ERRORE : PROBLEMA INVIO MAIL ! ****"; printf (nl2br("$testo")); } 

1. Su un hosting condiviso, l'indirizzo del mittente ($from nel codice) deve essere quellocollegato al vostro dominio. L'indirizzo deve anche essere diverso da quello del destinatario, altrimenti verrà visualizzato il messaggio di errore 542 ("Non sei autorizzato") e l'e-mail non verrà inviata.

2. Se desiderate utilizzare un indirizzo di mittente diverso da quello collegato al vostro dominio, dovrete abbonarvi a un server virtuale. Vi invitiamo a scoprire le nostre offerte a questo link: Server VPS(a partire da 9,99 €/mese IVA esclusa) .

help.lws.net/a/809
Questo articolo ti è stato utile?

Sì

No

Letto 21 355 volte

Grazie! Non esitare a porre domande sulla nostra documentazione se desideri maggiori informazioni e aiutarci a migliorarla.

Articoli simili

Domande sull'articolo (1)

Fai una domanda
JFB
31 juil. 2023
Nous sommes lundi 31 juillet, il est 15 heures. Depuis vendredi vers environ 14 heures, sur plusieurs sites chez LWS, la connexion FTP est très lente voire impossible et quand toutefois elle aboutit, aucune modification n'est effectuée.
Aurelien-LWS Risposta ufficiale
31 juil. 2023

Bonjour,

Je vous remercie pour votre message.

Nous ne rencontrons pas de problèmes particuliers avec le fonctionnement de nos services actuellement ou depuis vendredi dernier.

Ce problème peut venir de votre connexion internet, d'un blocage IP ou du logiciel de transfert FTP utilisé.

Afin qu'un agent puisse analyser en détail votre problème et vous trouver une solution, je vous invite à contacter notre support technique depuis la rubrique "assistance" de votre espace client.

Cordialement, L'équipe LWS

Questa risposta ti è stata utile?

Una domanda su questo articolo?

Ponila al team LWS e alla community. La risposta viene pubblicata dopo la moderazione.

Fate una domanda al team LWS e alla sua comunità

RGPD : Responsable LWS-Ligne Web Services. Finalité : modération et publication publique de votre question, notification éventuelle d'une réponse. Base légale : consentement (art. 6.1.a RGPD). Conservation des emails : 90 jours après notification, 12 mois maximum sans réponse. Vous pouvez exercer vos droits via notre nos CGV - section RGPD.