Mailer PHP code not sending properly

Dragnorian
edited November -1 in Bug/Issue Reports

Hello, I am having issues with my mailer. Someone I was chatting with that hasn't been on in a while says that my mx entries are correct and I set up everything correctly
<?php //--------------------------Set these paramaters-------------------------- // Subject of email sent to you. $subject = 'Subject'; // Your email address. This is where the form information will be sent. $emailadd = 'email@domain.com'; // Where to redirect after form is processed. $url = 'redirect.com'; // Makes all fields required. If set to '1' no field can be empty. If set to '0' any or all fields can be empty. $req = '0'; // --------------------------Do not edit below this line-------------------------- $text = "Submission Information:\n\n"; $space = ' '; $line = ' '; foreach ($_POST as $key => $value) { if ($req == '1') { if ($value == '') {echo "$key is empty";die;} } $j = strlen($key); if ($j >= 40) {echo "Name of form element $key cannot be longer than 40 characters";die;} $j = 20 - $j; for ($i = 1; $i <= $j; $i++) {$space .= ' ';} $value = str_replace('\n', "$line", $value); $conc = "{$key}:$space{$value}$line"; $text .= $conc; $space = ' '; } //'From: '.$emailadd.'' mail($emailadd, $subject, $text, "From: \""."WEB_CONTACT_SUBMISSION"."\"\n"); echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; ?>

Anyone have any solutions? My address is nerdodevelopmenttesting.unaux.com