isSMTP(); $mail->Host = 'outlook.office365.com'; // e.g. smtp.gmail.com $mail->SMTPAuth = true; $mail->Username = 'cathy@cake-me-home.com'; // SMTP username $mail->Password = 'Ebony12345!'; // SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; // 3) Recipients $mail->setFrom('cathy@cake-me-home.com', 'Cake Me Home'); $mail->addAddress('cathy@cake-me-home.com', 'Cake Me Home Owner'); // Optional: a CC back to the visitor $mail->addCC($email, $name); // 4) Content $mail->isHTML(true); $mail->Subject = "New Contact from {$name}"; $body = "

Name: {$name}

"; $body .= "

Email: {$email}

"; $body .= "

Phone: {$phone}

"; $body .= "

Message:
". nl2br($message) ."

"; $mail->Body = $body; $mail->send(); $sent = true; } catch (Exception $e) { $error = "Mailer Error: {$mail->ErrorInfo}"; } } } ?> Cake Me Home | Contact

Contact Us

Thanks, ! Your message has been sent. We’ll be in touch soon.