Hi there so the contact form for my site I am building for a client is hosted by godaddy and is returning an HTTP Error 500. I contacted them and they ran a test script saying everything works from their end. Also, they said that it works fine with either PHP or SMTP and that the issue revolves around the contact form script. I'm not sure what the issue could be as I followed the https://docs.semicolonweb.com/docs/forms/form-setup/
Here is the code for the contact form and form.php:
Name *
Email*
Message *
Send Message
'marylandib@gmail.com', // Your Email Address
'name' => 'Jordan' // Your Name
//);
/*-------------------------------------------------
Sender's Email
---------------------------------------------------*/
$fromemail = array(
'email' => 'no-reply@website.com', // Company's Email Address (preferably currently used Domain Name)
'name' => 'Company Name' // Company Name
);
/*-------------------------------------------------
reCaptcha
---------------------------------------------------*/
// Add this only if you use reCaptcha with your Contact Forms
$recaptcha_secret = ''; // Your reCaptcha Secret
/*-------------------------------------------------
hCaptcha
---------------------------------------------------*/
// Add this only if you use hCaptcha with your Contact Forms
$hcaptcha_secret = ''; // Your hCaptcha Secret
/*-------------------------------------------------
PHPMailer Initialization
---------------------------------------------------*/
$mail = new PHPMailer();
/* Add your SMTP Codes after this Line */
$mail->IsSMTP();
$mail->Host = "mail.yourdomain.com";
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Port = 26;
$mail->Username = "yourname@yourdomain.com";
$mail->Password = "yourpassword";
// End of SMTP
