<s>[INST] This code is for a contact form in PHP:
```php
<?php
// Initialize variables
$name = '';
$email = '';
$phone = '';
$subject = '';
$message = '';
$sendTo = 'receiving-email@example.com';
$subjectLine = 'New message from Contact Form';
$fromEmail = 'info@from-domain.com';

// Check for form submission
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $name = $_POST['name'];
    $email = $_POST['email'];
    $phone = $_POST['phone'];
    $subject = $_POST['subject'];
    $message = $_POST['message'];

    // Check for spam
    if (empty($name) || empty($email) || empty($subject) || empty($message)) {
        $error = 'Please fill in all the required fields.';
    } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
        $error = 'Invalid email address.';
    } elseif (!empty($phone) && !preg_match('/^[0-9\s()-]+$/', $phone)) {
        $error = 'Invalid phone number.';
    } else {
        $headers = array(
            'From' => $fromEmail,
            'Reply-To' => $email,
            'CC' => ''
        );
        $emailBody = "Name: $name\nEmail: $email\nPhone: $phone\nMessage:\n$message";
        $emailBody = wordwrap($emailBody, 70);

        mail($sendTo, $subjectLine, $emailBody, $headers);

        $success = 'Your message has been sent successfully!';
    }
}

?>
```[/INST]