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:
"[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