'smtp.hostinger.com','port' => 465,'secure' => 'ssl','user' => 'glow@aesthetiq.ca','pass' => 'YOUR_EMAIL_PASSWORD_HERE','from' => 'glow@aesthetiq.ca','from_name' => 'AesthetIQ RSVP Desk','to_notify' => 'glow@aesthetiq.ca',];// ============================================================================// 2. BACKEND AJAX HANDLER (RUNS ON FORM SUBMISSION)// ============================================================================if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST['action'] === 'submit_rsvp') {header('Content-Type: application/json; charset=utf-8');$name = trim(filter_input(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS)); $email = trim(filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL)); $phone = trim(filter_input(INPUT_POST, 'phone', FILTER_SANITIZE_SPECIAL_CHARS)); $date = trim(filter_input(INPUT_POST, 'date', FILTER_SANITIZE_SPECIAL_CHARS)); $time = trim(filter_input(INPUT_POST, 'time', FILTER_SANITIZE_SPECIAL_CHARS)); $guests = trim(filter_input(INPUT_POST, 'guests', FILTER_SANITIZE_SPECIAL_CHARS)); $interest = trim(filter_input(INPUT_POST, 'interest', FILTER_SANITIZE_SPECIAL_CHARS)); if (empty(\(name) || empty(\)email) || empty(\(phone) || empty(\)date) || empty($time)) { echo json_encode(['success' => false, 'message' => 'Please fill in all required fields marked with an asterisk (*).']); exit; } if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo json_encode(['success' => false, 'message' => 'Please enter a valid email address.']); exit; } \(subject = "New Open House RSVP: {\)name} - {\(date} at {\)time}"; $body = " New Open House RSVP ReceivedElgin Street Dental Centre • AesthetIQ Face & BodyGuest Name{$name}Email{$email}Phone{$phone}Selected Date{$date}Selected Time{$time}Party Size{$guests}Area of Interest" . (!empty($interest) ?$interest : 'General exploration / Not specified') . "Sent securely via the Open House RSVP portal at openhouse.elgindental.com.";$dispatch = send_smtp_socket_mail( $smtp_config['to_notify'], $subject, $body, $email, $name, $smtp_config ); if ($dispatch['success']) { echo json_encode(['success' => true]); } else { echo json_encode(['success' => false, 'message' => 'Mailer Error: ' . $dispatch['error']]); } exit; }function send_smtp_socket_mail($to,$subject, $html_message,$reply_to, $reply_name,$cfg) {$timeout = 15;$host_conn = ($cfg['secure'] === 'ssl') ? 'ssl://' . $cfg['host'] :$cfg['host'];\(socket = @fsockopen(\)host_conn, \(cfg['port'],\)errno, \(errstr,\)timeout); if (!$socket) { return ['success' => false, 'error' => "Cannot connect to mail host: {\(errstr} ({\)errno})"]; } \(read = function() use (\)socket) { $data = ''; while (\(str = fgets(\)socket, 515)) { \(data .=\)str; if (substr($str, 3, 1) === ' ') break; } return $data; }; $read(); fputs(\(socket, "EHLO " . (\)_SERVER['SERVER_NAME'] ?? 'localhost') . "\r\n"); $read(); if ($cfg['secure'] === 'tls') { fputs($socket, "STARTTLS\r\n"); \(tls_res =\)read(); if (substr($tls_res, 0, 3) !== '220') { fclose($socket); return ['success' => false, 'error' => 'STARTTLS negotiation failed.']; } stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); fputs(\(socket, "EHLO " . (\)_SERVER['SERVER_NAME'] ?? 'localhost') . "\r\n"); $read(); } fputs($socket, "AUTH LOGIN\r\n"); $read(); fputs(\(socket, base64_encode(\)cfg['user']) . "\r\n"); $read(); fputs(\(socket, base64_encode(\)cfg['pass']) . "\r\n"); \(auth_res =\)read(); if (substr($auth_res, 0, 3) !== '235') { fclose($socket); return ['success' => false, 'error' => 'Authentication failed. Please check SMTP username and password in index.php.']; } fputs(\(socket, "MAIL FROM: <{\)cfg['from']}>\r\n"); $read(); fputs(\(socket, "RCPT TO: <{\)to}>\r\n"); $read(); fputs($socket, "DATA\r\n"); $read(); $headers = [ "MIME-Version: 1.0", "Content-Type: text/html; charset=UTF-8", "From: =?UTF-8?B?" . base64_encode(\(cfg['from_name']) . "?= <{\)cfg['from']}>", "Reply-To: =?UTF-8?B?" . base64_encode(\(reply_name) . "?= <{\)reply_to}>", "To: <{$to}>", "Subject: =?UTF-8?B?" . base64_encode($subject) . "?=", "Date: " . date('r') ]; \(payload = implode("\r\n",\)headers) . "\r\n\r\n" . $html_message . "\r\n.\r\n"; fputs(\(socket,\)payload); \(send_res =\)read(); fputs($socket, "QUIT\r\n"); fclose($socket); if (substr($send_res, 0, 3) !== '250') { return ['success' => false, 'error' => 'Delivery rejected: ' . $send_res]; } return ['success' => true]; }?>RSVP | Patient Education Open House | Elgin Street Dental & AesthetIQ
Elgin Street Dental Centre in partnership with AesthetIQ Face & Body
Limited Spaces Available

You're Invited to Our Patient Education Open House

Join Cosmetic Nurse Yasmin for an informative, pressure-free conversation exploring modern approaches to skin health, healthy aging, and core vitality right here at your familiar dental clinic.

📅

Dates

Oct 2 & Oct 3, 2026

📍

Location

12 Elgin St E, Unit C

🥂

Hospitality

Food, Drinks & Gifts

🎁

Special Privilege

20% Off Launch Offer

Scroll down to see presentation topics & agenda

Reserve Your Spot

Complimentary entry. Dental patients and a guest are warmly welcome.

Purely educational and pressure-free. We respect your patient privacy.

Curriculum Overview

What We'll Explore Together

Oral health, facial aesthetics, and whole-body vitality are deeply connected. Our informal session breaks down modern restorative medicine into clear, accessible concepts.

Skin & Facial Aging

How and why our skin and facial features naturally change over time, and what modern preventative care does to maintain cellular health.

🌿

Facial Aesthetics

Skin rejuvenation, facial treatments, conservative injectables, and achieving subtle, natural-looking results that complement your smile.

🔬

Skin Health & Longevity

Modern approaches to maintaining healthy, refreshed-looking skin, stimulating collagen production, and protecting tissue elasticity as we age.

Core & Pelvic Vitality

An advanced, non-invasive approach using magnetic stimulation to strengthen deep core muscles, support postpartum recovery, and restore pelvic floor health comfortably and fully clothed.

"Come learn, ask questions, and explore the options available to help you make informed decisions about your skin and aesthetic health."

Educational Host

Meet Cosmetic Nurse Yasmin

Our educational session is led by Registered Nurse and Cosmetic Injector Yasmin. She brings specialized clinical expertise, a conservative philosophy, and an approachable setting where you can ask open questions about your skin and wellness without any sales pressure.

Reserve Your Attendance with Yasmin ↑