Hello,
I am building a website with Nicepage for a law office. My hosting provider (Dominios.pt) does not allow the use of the PHP mail() function for sending emails, as it is disabled on the server for security reasons. Instead, they require using SMTP with authentication (e.g., via PHPMailer).
Here is what I already tried:
I created a sendmail.php file with the standard PHP mail() function, uploaded it into my public_html directory.
In Nicepage, I used the Form → Action → URL option.
For the form action, I tested:
/sendmail.php
https://kanzlei-koelln-stotz.de/sendmail.php
I published the website, but when submitting the form I always get the message:
"Unable to send your message. Please fix errors then try again."
Since my hosting confirmed mail() will never work, my question is:
Is there an official or recommended way to configure Nicepage forms to work with SMTP instead of PHP mail()?
Can I integrate PHPMailer directly into the Nicepage form submission process, or must I fully replace the default handler with a custom script?
If SMTP is the only way, does Nicepage provide a guide or sample implementation?
Thank you for your help.