Błąd 542, Nie możesz wysłać wiadomości podczas wysyłania poczty

Procédure

Dlaczego występuje ten błąd?

Ten błąd pojawia się, gdy adres e-mail wprowadzony w kodzie nie jest autoryzowany do wysyłania wiadomości e-mail z serwera SMTP.

Jak mogę rozwiązać ten problem?

Aby wysłać wiadomość e-mail w PHP za pośrednictwem formularza, należy użyć następującego kodu:

$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 <  $from  >\r\n"; $entete .= "Reply-to: $from\r\n"; $entete .= "X-Mailer: PHP\r\n"; $entete .= "X-Priority: 1\r\n"; $entete .= "Return-Path: <  $from  > \r\n"; $msg = "test\r\n"; $sujet = "*** Test Mail ***\r\n"; $res = (mail($to,$sujet,$msg,$entete)); if (true == $res) { $texte = "Mail sent to"".$to."\"\n"; printf (nl2br("$texte")); } else { $texte = "**** ERROR : PROBLEM Z WYSŁANIEM MAILA ! ****"; printf (nl2br("$text")); } 

1. Na hostingu współdzielonym adres nadawcy ($from w kodzie) musi być adresem dołączonym do domeny. Adres musi również różnić się od adresu odbiorcy, w przeciwnym razie pojawi się komunikat o błędzie 542 ("You are not allowed"), a wiadomość e-mail nie zostanie wysłana.

2. Jeśli chcesz użyć adresu nadawcy innego niż ten dołączony do Twojej domeny, musisz zasubskrybować serwer wirtualny. Zapraszamy do zapoznania się z naszymi ofertami pod tym linkiem: Serwer VPS (od 9,99 €/miesiąc bez VAT) .

Oceń ten artykuł :

Ten artykuł był dla Ciebie przydatny ?

Article utileTak

Article non utileNie

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Podobne artykuły

0mn czytanie

Błąd Cloudflare 524: Wystąpił przekroczenie limitu czasu

3mn czytanie

Jak poprawić błąd 500 w witrynie za pomocą panelu LWS

10mn czytanie

Jak poprawić kody błędów HTTP?

0mn czytanie

Błąd 404, czym jest i jak go poprawić


Questions sur l'article
JFB Il y a 937 dni
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.
Zob.
1 odpowiedzi
Aurelien-LWS - Il y a 937 dni

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

Utile ?

Zadaj pytanie zespołowi LWS i jego społeczności