Contact form not working
Autor: Flavio M.Hi
I've create a contact form, from a template and also from scratch, and the form don't send e-mail.
I try the control pannel and there is working.
just not work at the form.
I'm using websitex5 pro 2019.3.14 and my hosting has php 5.6.30
you can look the form at https://www.ybytu.com.br/coisasdemulher and at https://www.ybytu.com.br/coisasdemulher/teste.php
at control pannel i can see severeal errors:
[2020-02-06 16:26:39] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[2020-02-06 16:26:39] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[2020-02-06 15:34:16] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I also don't know how to setup the type o script to send mail. I supose that is the defaul.
Another question is how to link fields on form with the components of email as a body. Any text fields will be sended as a mail body? and attatchements?
First thing is to get the PHP at your provider to 7 or higher.
Then test again through the admin panel with several mail scripts.
Test with mail adresses from your provider first, some providers do not handle mail adresses that are not from them.
if an email script works you can set it in x5 in step1, advanced tab -> data management.
Hope this helps.
Autor
Hi
I did. Php now is 7.3 and still don't work.
Did you test with mail adresses from your provider or did you use mail from another mail provider?
Who is your service provider for your webhosting?
Autor
Fixed!
It was my mistake.
There was a error on mail accounting information.
Thank you for your help
Thank you for the feedback, glad it's solved.
Ler post abaixo:
https://helpcenter.websitex5.com/pl/post/222116
Lembre-se que enquanto a website x5 não cuida do PHPMailer, voces deverão utilizar o chato do SMTP autenticado.