Make an appointment


SMTPDebug = SMTP::DEBUG_SERVER; // for detailed debug output $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->Username = 'anthonychavez@dietnutris.com'; // YOUR gmail email $mail->Password = 'tqgbztnlxxlcqtho'; // YOUR gmail password // Sender and recipient settings $mail->setFrom('anthonychavez@dietnutris.com', 'Dietnutris'); $mail->addAddress($email, $name, $message); $mail->addReplyTo('anthonychavez@dietnutris.com', 'Dietnutris'); // to set the reply to // Setting the email content $mail->IsHTML(true); $mail->Subject = "Contact Replay [Success]"; $mail->Body = "

Thank you for Contact us.

This e-mail was sent from Dietnutris

"; $mail->AltBody = "This is the plain text version of the email content"; if(!$mail->send()) { echo "Success! check sometimes later."; } else { echo "Success! check your email."; } $mail2 = new PHPMailer(true); // Server settings //$mail2->SMTPDebug = SMTP::DEBUG_SERVER; // for detailed debug output $mail2->isSMTP(); $mail2->Host = 'smtp.gmail.com'; $mail2->SMTPAuth = true; $mail2->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail2->Port = 587; $mail2->Username = 'anthonychavez@dietnutris.com'; // YOUR gmail email $mail2->Password = 'tqgbztnlxxlcqtho'; // YOUR gmail password // Sender and recipient settings $mail2->setFrom('anthonychavez@dietnutris.com', 'Dietnutris'); $mail2->addAddress('anthonychavez@dietnutris.com', 'Dietnutris'); //$mail->addReplyTo('anthonychavez@dietnutris.com', 'Dietnutris'); // to set the reply to // Setting the email content $mail2->IsHTML(true); $mail2->Subject = "Contact Details"; $mail2->Body = "Following user has been submitted contact details on your website
Name : $name
Email : $email
Message : $message
"; //$mail->AltBody = "This is the plain text version of the email content"; $mail2->send(); } } ?>