Arctic Tails, LLC Existing Customer Daycare Request

Error/Status message is displayed below Submit button

* Required

Owner Information

Pet Information

"; $name=$_POST['name']; $message .= "Name:" . $name; $message .= "
"; $phone=$_POST['phone']; $message .= "Phone:" . $phone; $message .= "
"; $email=$_POST['email']; $message .= "Email:" . $email; $message .= "
"; $message .= "*****Pet Information*****"; $message .= "
"; $petName1=$_POST['petName1']; $message .= "1st Pet Name:" . $petName1; $message .= "
"; $petName2=$_POST['petName2']; $message .= "2nd Pet Name:" . $petName2; $message .= "
"; $petName3=$_POST['petName3']; $message .= "3rd Pet Name:" . $petName3; $message .= "
"; $addlInfo=$_POST['addlInfo']; $message .= "Addl Info:" . $addlInfo; $subject="Existing Customer Daycare Request"; $from = new SendGrid\Email($name, $email); $to = new SendGrid\Email("Arctic Tails", "arctictails.info@gmail.com"); // $to = new SendGrid\Email("Arctic Tails", "w.soon800@gmail.com"); $content = new SendGrid\Content("text/html", $message); $mail = new SendGrid\Mail($from, $subject, $to, $content); $apiKey = "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"; $sg = new \SendGrid($apiKey); $response = $sg->client->mail()->send()->post($mail); if ($response->statusCode()=="202") { echo "Email sent!"; } else { echo "Email failed. Please try again."; } } ?>