• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Contact Us Form - Chevereto 2.0

Cory

Chevereto Member
I'm working on my site and making the "Contact Form" work and I noticed some known issues you should check into that I've already fixed.

Code:
                                $result  = true;
                $name    = $_POST['name'];
                $email   = trim($_POST['email']);
                $message = $_POST['message'];

to

Code:
                                $result  = true;
                $name    = stripslashes($_POST['name']);
                $email   = trim($_POST['email']);
                $message = stripslashes($_POST['message']);

For some reason:

$use_phpmailer = true; // true: uses php mailer | false: uses the default mail() function

Isn't working and should look in to it, I've // the code so I can use SMTP.

The SMTP Settings and to 'Enable/Disable' should be added to the config.php file.
 
you can validate the email with:

Code:
preg_match("/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i", $email)
 
Yeah, I know I could add something like this...Just pointing out some issues with the script the originally implemented as it wasn't working.
 
Back
Top