Php mailer
Autor: Patrick L.
Visited 38,
Followers 1,
Udostępniony 0
Bonjour,
Je n'arrive pas à envoyer un formulaire via le scrip PHP mailer (ni avec les autres options du reste) alors que je n'ai aucun problème sur d'autres sites. Mon hebergeur est LWS et la version PHP utilisée est la version 8.3. Je recçois les message d'erreur suivant :
[2025-01-09 07:32:59] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Y a-t-il une modification à faire au niveau du script Website ?
Merci de me donner des pistes à explorer, je ne trouve rien sur la doc en ligne.
Cordialement, PLR
Posted on the
Hello,
I would suggest switching to PHP 8.2 and contacting your hosting provider for additional etails about the SMTP connection failure, to understand whether this was due to incorrect parameters or other factors. They may also recommend a specific script for optimal compatibility.
I remain available.
Online translation:
Bonjour,
Je vous suggère de passer à PHP 8.2 et de contacter votre hébergeur pour obtenir des détails supplémentaires sur l'échec de la connexion SMTP, afin de comprendre si cela est dû à des paramètres incorrects ou à d'autres facteurs. Ils pourraient également recommander un script spécifique pour une compatibilité optimale.
Je reste disponible.
Autor
I switched to PHP 8.2 a per your suggestion. I have the SMTP credentials from my hosting provider but where can I adjust these credentials in Website X5 ? I must modify the PHP mailer script ? Is there a specific help item in your documentation, I can't find it ? Thank you, regards
Hello Patrick,
you can switch to a different e-mail script in Step 5 - Export ---> Upload to the internet ---> Parameters, in the E-mail tab.
By default PHP mailer is selected, but you can choose SMTP and Authenticated SMTP among other options.
Autor
Hi again,
I got you, the PHP test is working from the admin console using PHP mailer, so this thing is settled now but the credentials are my own credentials for my own email.
But how does that work when I send a form from the site which is hosted by my provider ? how do I supply the SMTP credentials ? I can't figure out that part ? I created a info@mydomain shall I use this one ? iWhere is the script and should I make any change on it ?
thank you for your help. Regards, PLR
Hello Patrick,
as I mentioned, you can set up the SMTP parameters in Step 5 - Export.
When changing the script in the section you can see in my screenshot, you will also need to provide all of the SMTP credentials associated with your domain e-mail address.
This will be the address used by the website when sending e-mails: in general it is recommended to use a domain address rather than a "generic" one.