prepare($sql); $stmt->execute([$name, $email, $message_body]); // Send email notification $to = getenv('MAIL_TO') ?: null; $subject = 'New Contact Form Submission'; $htmlBody = "

New Contact Form Submission

Name: {$name}

Email: {$email}

Message:

{$message_body}

"; $textBody = "Name: {$name}\nEmail: {$email}\nMessage:\n{$message_body}"; MailService::sendMail($to, $subject, $htmlBody, $textBody, ['reply_to' => $email]); $_SESSION['message'] = '
Thank you for your message. It has been sent.
'; } catch (PDOException $e) { $_SESSION['message'] = '
There was a database error. Please try again later.
'; } catch (Exception $e) { $_SESSION['message'] = '
There was an error sending the email. Please try again later.
'; } } else { $_SESSION['message'] = '
Please fill out all fields correctly.
'; } header("Location: index.php#contact"); exit; } ?> new lamp stack

Welcome to My New App

A modern, responsive landing page built on the LAMP stack.

Get in Touch

About Me

This is a space to tell your story. Who are you? What do you do? What are you passionate about? Keep it concise and engaging.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

A portrait of the site owner.

My Work

Placeholder for a portfolio project.
Project One

A brief description of the project, its purpose, and the technologies used.

Placeholder for another portfolio project.
Project Two

A brief description of the project, its purpose, and the technologies used.

What People Are Saying

A testimonial provider's face.

"This is a fantastic service! Highly recommended."

- Jane Doe

A testimonial provider's face.

"Incredible results and a pleasure to work with."

- John Smith

A testimonial provider's face.

"A game-changer for our business."

- Sam Wilson

Contact Me