NOT AVAILABLE
Contact Me
document.getElementById('contactForm').addEventListener('submit', function (e) { e.preventDefault(); const f = new FormData(e.target); const name = encodeURIComponent(f.get('name')); const email = encodeURIComponent(f.get('email')); const message = encodeURIComponent(f.get('message')); const to = 'camhampton133@gmail.com'; // <-- replace with your email const subject = encodeURIComponent('Website contact from ' + name); const body = encodeURIComponent(`From: ${name} \n\n${f.get('message')}`); // construct mailto URL const mailto = `mailto:${to}?subject=${subject}&body=${body}`; window.location.href = mailto; });