Merge pull request 'Changed the contact form' (#4) from sageTheDm/pages:main into main

Reviewed-on: https://interstellardevelopment.org/code/code/interstellar_development/pages/pulls/4
Reviewed-by: Patrick <patrick_pluto@noreply.localhost>
This commit is contained in:
Patrick 2024-08-30 10:10:03 +02:00
commit d34dda976a
2 changed files with 2 additions and 1 deletions

View file

@ -38,7 +38,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Construct the mailto link
const subject = `Support Ticket #${ticketNumber}`;
const body = `Name: ${name}%0AEmail: ${email}%0AMessage:%0A${message}`;
const mailtoLink = `mailto:info@photofuel.tech?subject=${subject}&body=${body}`;
const mailtoLink = `mailto:example@example.com?subject=${subject}&body=${body}`;
// Open the default mail client
window.location.href = mailtoLink;

View file

@ -36,6 +36,7 @@
<!-- Contact Form -->
<section id="contact">
<h2>Contact Us</h2>
<p>This contact form has an invalid mail until our mailserver is configured</p>
<form id="contactForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required />