Please correct your: " . implode(", ", $errorArray) . ".";
}
else {$nameerror = '';$emailerror = '';$messageerror = '';}
//Declarate the necessary variables
if ($fail == false) {
$mail_to='contact@oldphonesforcharity.com';
$mail_from=$emailentry;
$mail_sub='Old Phones for Charity Contact form email from ' . $emailentry;
$mailtextlong = $nameentry . " (" . $emailentry . ") wrote:" . "\r\n" . "\r\n" . "\r\n" . $messageentry;
$mail_mesg= wordwrap($mailtextlong,70);
//Check whether the submission is made & Check for success/failure of delivery
if(mail($mail_to,$mail_sub,$mail_mesg, "From:$emailentry" . "\r\n" . "Reply-to:$emailentry")) {
echo "