sadly, I find myself in need of your help again...
I recently changed my hosting provider to Namecheap (like a month ago) and today I just noticed that I'm not receiving emails sent through the contact form on my site amelicakes.com.
The PHP code of this form hasn't changed and the contact form worked perfectly on my previous hosting provider.
PHP for the contact form is below:
<?php header('Content-Type: text/html; charset=utf-8');
header('Content-Transfer-Encoding: 8bit');
if(isset($_POST['email'])){
$mailTo = "ameli_cakes@abv.bg";
$subject = "mail from web";
$body = "New message from web
<br><br>
FROM: ".$_POST['email']."<br>
NAME: ".$_POST['name']."<br>
SUBJECT: ".$_POST['subject']."<br>
COMMENTS: ".$_POST['message']."<br>";
$headers = "To: Ameli Cakes <".$mailTo.">\r\n";
$headers .= "From: Contact Form <contact@amelicakes.com>\r\n";
$headers .= 'Content-Type: text/HTML; charset=utf-8' . "\r\n";
$headers .= 'Content-Transfer-Encoding: 8bit'. "\n\r\n";
//envio destinatario
$mail_success = mail($mailTo, $subject, $body, $headers);
}
?>
After talking with a Namecheap representative, they told me that "PHP debugging is out of their scope" and to check this link.
Guys... I tried but I have no idea what I'm doing, and before making my PHP form unusable I decided to revert back to the original version and ask for help here.
I think I need to send these emails to an email account hosted in their servers so I created contact@amelicakes.com but I don't know how to continue.
Whatever help you can provide would be greatly appreciated, keep in mind that my PHP knowledge is very limited.
Thanks in advance to whoever is reading this!
PS: Please do not close this as duplicate, I have checked the alternatives and I do not understand how they apply to my case, the code seems different.