Hi Tihana,
it`s the "PHP Mail" function, which is in use.
This is
not about the
sending the form,
but
it`s about
protecting it from
getting spammed !
Tihana, please read properly.
After i used the PHP example from above, i got the mentioned PHP error.
That`s the problem.
Parte del mensaje está oculto para usuarios no registrados. Por favor inicie sesión o regístrese para poder verlo.
I need a working example preventing spam with a bad-words-filter via PHP.
That´s it.
And yes, i changed the vars, have a look:
$this->execPieceByName('ff_InitLib');
$send = true;
$recipient = ff_getSubmit('mail');
$body= ff_getSubmit('message');
$from = 'info@galabau-formann.de';
$fromname = 'www.galabau-formann.de';
$subject = 'Anfrage über das Kontaktformular von www.galabau-formann.de';
//$mail->AddAddress($recipient);
$badword = array('viagra','sex','milf','SEO','loan','www','WWW','http','https','HTTP','HTTTPS','google','GOOGLE','com');
foreach ($badword as $bw)
{
if (stripos($body, $bw) !== false)
{
$send = false;
}
}
if($send === true)
{$this->sendMail($from, $fromname, $recipient, $subject, $body);}
Spam is still being send and received with the form today.
PLEASE consider making an Update and integrating such things as preventing spam,
via JS & PHP.
thank you