I have no idea why this won't work and I even tried it on another server and got Warning: Failed to Connect . I keep getting the same error on the mail() line can anyone see where I made an error
$mailTo = "youremail@whatever.com";
$msgSubject = "companyname";
$message = "name: $name\nemail: $email\nphone: $phone\nphone2: $phone2\ntalent: $talent\ncomments: $comments";
$extra = "From: $name\r\nReply-To: $email\r\n";
$xHeaders = "From: $email\nX-Mailer: PHP/" . phpversion();
mail ($mailTo, $msgSubject, $message, $extra, $xHeaders);