SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output $mail->SMTPDebug = SMTP::DEBUG_SERVER; $mail->isSMTP(); $mail->Host = 'mail.tazz.com.au'; $mail->SMTPAuth = true; $mail->Username = 'itadmin@tazz.com.au'; $mail->Password = 'e]GG%LI,6$cx'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = 465; $mail->CharSet = PHPMailer::CHARSET_UTF8; //It's important not to use the submitter's address as the from address as it's forgery, //which will cause your messages to fail SPF checks. //Use an address in your own domain as the from address, put the submitter's address in a reply-to $mail->setFrom('ben@tazz.com.au', (empty($name) ? 'Contact form' : $name)); $mail->addAddress('ben@tazz.com.au'); $mail->addReplyTo($email, $name); //Attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name //Content $mail->isHTML(true); //Set email format to HTML $mail->Subject = 'Contact form: ' . $subject; $message = ''; $message .= '

' . $subject . ' Contact Enquiry from


'; $message .= '

Name: ' . $name . '

'; $message .= '

Email Address: ' . $email . '

'; $message .= '

Mobile Number: ' . $mobile . '

'; $message .= '

Property Address: ' . $property_address . '

'; $message .= '

Enquiry:
' . $query . '



'; $message .= $datetime . '

'; $message .= '' . $name . '
Blueprint Sudio
'; $message .= '
Blueprint Sudio | 34 Coplestone Street | Scottsdale | Tas | 7260
'; $message .= 'M 0402 984 082 | E design@studioblueprint.com.au | W studioblueprint.com.au

'; $message .= 'Blueprint Sudio

'; $message .= '

Blueprint Sudio Legal Disclaimer: This email is confidential and may contain legally privileged information. If you are not the intended recipient , you must not disclose or use the information contained in it. If you have received this email in error, please notify us immediately by return email and delete the document.

'; $message .= ''; $mail->Body = $message; if (!$mail->send()) { $msg .= 'Mailer Error: ' . $mail->ErrorInfo; } else { $msg .= 'Message sent!'; } } } ?>