IsSMTP(); // set mailer to use SMTP $mail->Host = "mail.aerialsdirectcardiff.co.uk"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "website@aerialsdirectcardiff.co.uk"; // SMTP username $mail->Password = "8sgB7SU7F74f"; // SMTP password $mail->AddAddress("office@aerials.direct", "Aerials Direct Ltd"); //Email address where you wish to receive/collect those emails. if (isset($_FILES['uploadFile']) && $_FILES['uploadFile']['error'] == UPLOAD_ERR_OK) { $mail->AddAttachment($_FILES['uploadFile']['tmp_name'],$_FILES['uploadFile']['name']); } //Validation for the forms function email_is_valid($email) { return preg_match('/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i',$email); } if (!email_is_valid($email)) { $err = '

Email Address is not valid


'; goto cont; } if(empty($_POST['email'])){ $err = '

Email address cannot be empty


'; goto cont; } if(empty($_POST['name'])){ $err = '

Name cannot be empty


'; goto cont; } if(empty($_POST['phone'])){ $err = '

Phone cannot be empty


'; goto cont; } if(empty($_POST['postcode'])){ $err = '

Postal Code cannot be empty


'; goto cont; } if(empty($_POST['message'])){ $err = '

Enquiry cannot be empty


'; goto cont; } $mail->IsHTML(true); // set email format to HTML $mail->From = "contact@aerialsdirectcardiff.co.uk"; $mail->FromName = "Aerials Direct"; $mail->AddReplyTo($email, $senderName); $mail->Subject = "Website Enquiry - $postCode"; $mail->Body = "Aerials direct London

Sent By: $senderName
Email: $email

Phone : $phone
Post code: $postCode

Comments: $Comments
Date Send: $date"; $redirect_url = "thankyou.html"; if(!$mail->Send()) { echo "Message could not be sent.

"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } else { $err="Thank You
Your enquiry has been received and someone will contact you shortly.

"; $auto = new PHPMailer(); $auto->IsSMTP(); // set mailer to use SMTP $auto->Host = "mail.aerialsdirectcardiff.co.uk"; // specify main and backup server $auto->SMTPAuth = true; // turn on SMTP authentication $auto->Username = "contact@aerialsdirectcardiff.co.uk"; // SMTP username $auto->Password = "p&D?^MAdfaF,"; // SMTP password $auto->AddAddress($email, $senderName); //Email address where you wish to receive/collect those emails. $auto->IsHTML(true); // set email format to HTML $auto->From = "contact@aerialsdirectcardiff.co.uk"; $auto->FromName = "Aerials Direct"; $auto->Subject = "Enquiry Confirmation from Aerials Direct (Cardiff)"; $auto->Body = " Aerials direct Cardiff

Hi $senderName,


Thank you for submitting your enquiry via our online contact form.

We can confirm we have received your enquiry and you will receive a response shortly.


While you are waiting for our reply, why not check out our Video Portfolio and Work Gallery.


If you need to get in contact with us more urgently, you can call us directly on 0845 303 5566.


Best regards.


Aerials Direct Ltd
Satellite & TV Aerial Specialists

T : 0845 303 55 66
M: 07593 817203
W: www.aerialsdirect.tv

Registered Digital Installer ID: 18268356
CAI Plus Member ID: C.1732
"; $auto->Send(); } } else if(!empty($_POST) && !chk_crypt($_POST['code'])) $inv_captcha= true; cont: ?>





Aerials Direct (Cardiff) Gallery



Digital Approved Member CAI Plus City & Guilds CSCS CRB Checked CHAS
accreditations