Hi,
\n"; $email_message .= "Thank you for contacting The Flower College at Studio 539 Flowers. Please see attached schedule for our upcoming classes. In the meantime, if you have any questions please contact me at classes@studio539flowers.com or call the store 401-454-4400 to register.
\n"; $email_message .= "I look forward to speaking with you soon,
\n"; $email_message .= "Danielle
\n"; $email_message .= "\n";
$email_message .= "Name: " . validateVariable($_POST['name'], "regular", "128") . "
\n";
$email_message .= "Email Address: " . validateVariable($_POST['email_address'], "email", "128") . "
\n";
$email_message .= "Phone: " . validateVariable($_POST['phone'], "phone", "24") . "
\n";
$email_message .= "Class and Date: " . validateVariable($_POST['class_name_date'], "regular", "255") . "
\n";
$visitor_email = validateVariable($_POST['email_address'], "email", "128");
$mail = new PHPMailer(true);
try {
// Optional Debug
// $mail->SMTPDebug = SMTP::DEBUG_SERVER;
// Recipients
$mail->setFrom('classes@studio539flowers.com', 'Studio 539 Flowers');
$mail->addAddress($visitor_email);
// $mail->addAddress('craig@intrepidws.com');
// $mail->addCC('cc@example.com');
$mail->addBCC('classes@studio539flowers.com`');
// Attachments
$mail->addAttachment($_SERVER['DOCUMENT_ROOT'] . "/assets/downloads/Studio-539-Floral-Design-Workshops.pdf");
// $mail->addAttachment('/tmp/image.jpg', 'new.jpg');
// Content
$mail->isHTML(true);
$mail->Subject = 'Studio 539 Flowers Workshop Inquiry';
$mail->Body = $email_message;
// $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
$show_form = 0;
} catch (Exception $e) {
echo "Message could not be sent.
"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } } ?>
Thanks for contacting Studio 539 Flowers about our Workshops. You will receive an email confirming your inquiry and we will contact you shortly.