The Big Spring Sale! Up to 50% off!

HTML - Contact form PHP script - Submit

A casota dos bichos
5 Posts
A casota dos bichos posted this 19 April 2021
Ask a Question

Hello,

I have a PHP script contact form on my web server that correctly sends an e-mail.
The form on the website gives an error message when send email or not send message.
Do you have any how to properly set the script, so that I can get a "Success" message and display this on screen correctly?

Thanks!

Carlos

Hello, I have a PHP script contact form on my web server that correctly sends an e-mail. The form on the website gives an error message when send email or not send message. Do you have any how to properly set the script, so that I can get a "Success" message and display this on screen correctly? Thanks! Carlos
Vote to pay developers attention to this features or issue.
5 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 26 April 2021

Hello,

We are glad to hear that you managed to set up your PHP settings.
Let us know if you have any other questions.

Thank you.
...................................................
Sincerely,
Anna T.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello, We are glad to hear that you managed to set up your PHP settings. Let us know if you have any other questions. Thank you. ................................................... Sincerely, Anna T. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
A casota dos bichos
5 Posts
A casota dos bichos posted this 25 April 2021

Hello,
The problem is solved.
It had a poorly defined php variable.
Best regards
Carlos Garcia

Hello, The problem is solved. It had a poorly defined php variable. Best regards Carlos Garcia
Support Team
Support Team posted this 20 April 2021

Hello,

Please follow the steps from this article https://www.phpflow.com/php/how-to-send-email-from-localhost-using-php/
Please report the result.

...................................................
Sincerely,
Anna T.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello, Please follow the steps from this article https://www.phpflow.com/php/how-to-send-email-from-localhost-using-php/ Please report the result. ................................................... Sincerely, Anna T. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
A casota dos bichos
5 Posts
A casota dos bichos posted this 19 April 2021

Hi,
the email is correct, you can see in attachments image.
The problem is nicepage PHP script use function mail smtp without authentication and my hosting webserver for reasons off
security dont permit send emal without user and password.
Web server log:
"[19-Apr-2021 16:28:18 Europe/Lisbon] PHP Fatal error: Uncaught Error: Call to undefined function mail() in /home/acasotad/public_html/scripts/FormProcessor.php:150
Stack trace:

0 /home/acasotad/public_html/scripts/FormProcessor.php(31): FormProcessor->_formSubmission()

1 /home/acasotad/public_html/scripts/form-0a92.php(55): FormProcessor->process()

2 {main}

thrown in /home/acasotad/public_html/scripts/FormProcessor.php on line 150"

I run Php scriptURL(filexx.php) direct and work ok.
Log of phpmailer:

Connection: opening to hosting135.serverhs.org:587, timeout=300, options=array ()
Connection: opened
SERVER -> CLIENT: 220-hosting135.serverhs.org ESMTP Exim 4.94 #2 Mon, 19 Apr 2021 16:17:50 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
CLIENT -> SERVER: EHLO www.acasotadosbichos.pt
SERVER -> CLIENT: 250-hosting135.serverhs.org Hello www.acasotadosbichos.pt [194.39.124.127]250-SIZE 52428800250-8BITMIME250-PIPELINING250-X_PIPE_CONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 TLS go ahead
CLIENT -> SERVER: EHLO www.acasotadosbichos.pt
SERVER -> CLIENT: 250-hosting135.serverhs.org Hello www.acasotadosbichos.pt [194.39.124.127]250-SIZE 52428800250-8BITMIME250-PIPELINING250-X_PIPE_CONNECT250-AUTH PLAIN LOGIN250 HELP
CLIENT -> SERVER: AUTH LOGIN
SERVER -> CLIENT: 334 VXNlcm5hbWU6
CLIENT -> SERVER: Zm9ybXVsYXJpb3NAYWNhc290YWRvc2JpY2hvcy5wdA==
SERVER -> CLIENT: 334 UGFzc3dvcmQ6
CLIENT -> SERVER: TmI9M35XNylVMEl2
SERVER -> CLIENT: 235 Authentication succeeded
CLIENT -> SERVER: MAIL FROM:<formularios@acasotadosbichos.pt>
SERVER -> CLIENT: 250 OK
CLIENT -> SERVER: RCPT TO:<cmgarciasilva@gmail.com>
SERVER -> CLIENT: 250 Accepted
CLIENT -> SERVER: DATA
SERVER -> CLIENT: 354 Enter message, ending with "." on a line by itself
CLIENT -> SERVER: Date: Mon, 19 Apr 2021 16:17:50 +0100
CLIENT -> SERVER: To: A casota dos bichos <cmgarciasilva@gmail.com>
CLIENT -> SERVER: From: A casota dos bichos <formularios@acasotadosbichos.pt>
CLIENT -> SERVER: Subject: =?utf-8?Q?Formul=C3=A1rio_de_Contato_-_A_casota_dos_bichos?=
CLIENT -> SERVER: Message-ID: <93e4cabf35f5bf26ae32c227e0bca36f@www.acasotadosbichos.pt>
CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.13 (https://github.com/PHPMailer/PHPMailer/)
CLIENT -> SERVER: MIME-Version: 1.0
CLIENT -> SERVER: Content-Type: text/plain; charset=utf-8
CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
CLIENT -> SERVER:
CLIENT -> SERVER: Formulário de Contacto - A casota dos bichos
CLIENT -> SERVER: Nome:
CLIENT -> SERVER: Email:
CLIENT -> SERVER: Telefone:
CLIENT -> SERVER: Mensagem:
CLIENT -> SERVER:
CLIENT -> SERVER:
CLIENT -> SERVER: .
SERVER -> CLIENT: 250 OK id=1lYVeo-00HAWO-Fh
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 221 hosting135.serverhs.org closing connection
Connection: closed
E-mail enviado com sucesso!"

If i put in form submit URL de fileXXX.php send email but message is error.
Can have solution for that?
Thanks
Carlos Garcia

Hi, the email is correct, you can see in attachments image. The problem is nicepage PHP script use function mail smtp without authentication and my hosting webserver for reasons off security dont permit send emal without user and password. Web server log: &quot;[19-Apr-2021 16:28:18 Europe/Lisbon] PHP Fatal error: Uncaught Error: Call to undefined function mail() in /home/acasotad/public_html/scripts/FormProcessor.php:150 Stack trace: #0 /home/acasotad/public_html/scripts/FormProcessor.php(31): FormProcessor-&gt;_formSubmission() #1 /home/acasotad/public_html/scripts/form-0a92.php(55): FormProcessor-&gt;process() #2 {main} thrown in /home/acasotad/public_html/scripts/FormProcessor.php on line 150&quot; I run Php scriptURL(filexx.php) direct and work ok. Log of phpmailer: Connection: opening to hosting135.serverhs.org:587, timeout=300, options=array () Connection: opened SERVER -&gt; CLIENT: 220-hosting135.serverhs.org ESMTP Exim 4.94 #2 Mon, 19 Apr 2021 16:17:50 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. CLIENT -&gt; SERVER: EHLO www.acasotadosbichos.pt SERVER -&gt; CLIENT: 250-hosting135.serverhs.org Hello www.acasotadosbichos.pt [194.39.124.127]250-SIZE 52428800250-8BITMIME250-PIPELINING250-X_PIPE_CONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP CLIENT -&gt; SERVER: STARTTLS SERVER -&gt; CLIENT: 220 TLS go ahead CLIENT -&gt; SERVER: EHLO www.acasotadosbichos.pt SERVER -&gt; CLIENT: 250-hosting135.serverhs.org Hello www.acasotadosbichos.pt [194.39.124.127]250-SIZE 52428800250-8BITMIME250-PIPELINING250-X_PIPE_CONNECT250-AUTH PLAIN LOGIN250 HELP CLIENT -&gt; SERVER: AUTH LOGIN SERVER -&gt; CLIENT: 334 VXNlcm5hbWU6 CLIENT -&gt; SERVER: Zm9ybXVsYXJpb3NAYWNhc290YWRvc2JpY2hvcy5wdA== SERVER -&gt; CLIENT: 334 UGFzc3dvcmQ6 CLIENT -&gt; SERVER: TmI9M35XNylVMEl2 SERVER -&gt; CLIENT: 235 Authentication succeeded CLIENT -&gt; SERVER: MAIL FROM:&lt;formularios@acasotadosbichos.pt&gt; SERVER -&gt; CLIENT: 250 OK CLIENT -&gt; SERVER: RCPT TO:&lt;cmgarciasilva@gmail.com&gt; SERVER -&gt; CLIENT: 250 Accepted CLIENT -&gt; SERVER: DATA SERVER -&gt; CLIENT: 354 Enter message, ending with &quot;.&quot; on a line by itself CLIENT -&gt; SERVER: Date: Mon, 19 Apr 2021 16:17:50 +0100 CLIENT -&gt; SERVER: To: A casota dos bichos &lt;cmgarciasilva@gmail.com&gt; CLIENT -&gt; SERVER: From: A casota dos bichos &lt;formularios@acasotadosbichos.pt&gt; CLIENT -&gt; SERVER: Subject: =?utf-8?Q?Formul=C3=A1rio_de_Contato_-_A_casota_dos_bichos?= CLIENT -&gt; SERVER: Message-ID: &lt;93e4cabf35f5bf26ae32c227e0bca36f@www.acasotadosbichos.pt&gt; CLIENT -&gt; SERVER: X-Mailer: PHPMailer 5.2.13 (https://github.com/PHPMailer/PHPMailer/) CLIENT -&gt; SERVER: MIME-Version: 1.0 CLIENT -&gt; SERVER: Content-Type: text/plain; charset=utf-8 CLIENT -&gt; SERVER: Content-Transfer-Encoding: 8bit CLIENT -&gt; SERVER: CLIENT -&gt; SERVER: Formul&#225;rio de Contacto - A casota dos bichos CLIENT -&gt; SERVER: Nome: CLIENT -&gt; SERVER: Email: CLIENT -&gt; SERVER: Telefone: CLIENT -&gt; SERVER: Mensagem: CLIENT -&gt; SERVER: CLIENT -&gt; SERVER: CLIENT -&gt; SERVER: . SERVER -&gt; CLIENT: 250 OK id=1lYVeo-00HAWO-Fh CLIENT -&gt; SERVER: QUIT SERVER -&gt; CLIENT: 221 hosting135.serverhs.org closing connection Connection: closed E-mail enviado com sucesso!&quot; If i put in form submit URL de fileXXX.php send email but message is error. Can have solution for that? Thanks Carlos Garcia
Support Team
Support Team posted this 19 April 2021

Hello,

Please make sure your email address in your Contact Form with PHP script as "where to send" coincide with an email address on the server that hosts the website.
Thank you.

...................................................
Sincerely,
Anna T.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello, Please make sure your email address in your Contact Form with PHP script as "where to send" coincide with an email address on the server that hosts the website. Thank you. ................................................... Sincerely, Anna T. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments