• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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