Arctic Tails, LLC Owner Contact Information Sheet

Error/Status message is displayed below Submit button

* Required

Owner Information

Alternate/Emergency Contact

Pet Information

"; $name1 =$_POST['name1']; $message .= "Name:" . $name1; $message .= "
"; $name2=$_POST['name2']; $message .= "Name:" . $name2; $message .= "
"; $address =$_POST['address']; $message .= "Address:" . $address; $message .= "
"; $zipCode =$_POST['zipCode']; $message .= "Zip Code:" . $zipCode; $message .= "
"; $email =$_POST['email']; $message .= "Email:" . $email; $message .= "
"; $homePhone=$_POST['homePhone']; $message .= "Home Phone:" . $homePhone; $message .= "
"; $workPhone=$_POST['workPhone']; $message .= "Work Phone:" . $workPhone; $message .= "
"; $cellPhone1=$_POST['cellPhone1']; $message .= "Cell Phone:" . $cellPhone1; $message .= "
"; $cellPhone2=$_POST['cellPhone2']; $message .= "Cell Phone:" . $cellPhone2; $message .= "
"; $message .= "*****Alternate/Emergency Contact*****"; $message .= "
"; $altName =$_POST['altName']; $message .= "Name:" . $altName; $message .= "
"; $altHomePhone=$_POST['altHomePhone']; $message .= "Home Phone:" . $altHomePhone; $message .= "
"; $altWorkPhone=$_POST['altWorkPhone']; $message .= "Work Phone:" . $altWorkPhone; $message .= "
"; $altCellPhone=$_POST['altCellPhone']; $message .= "Cell Phone:" . $altCellPhone; $message .= "
"; $message .= "*****Pet Information*****"; $message .= "
"; $petName1 =$_POST['petName1']; $message .= "Pet Name:" . $petName1; $message .= "
"; $breed1 =$_POST['breed1']; $message .= "Breed:" . $breed1; $message .= "
"; $color1 =$_POST['color1']; $message .= "Color:" . $color1; $message .= "
"; $birthDate1=$_POST['birthDate1']; $message .= "Birth Date:" . $birthDate1; $message .= "
"; $petName2 =$_POST['petName2']; $message .= "Pet Name:" . $petName2; $message .= "
"; $breed2 =$_POST['breed2']; $message .= "Breed:" . $breed2; $message .= "
"; $color2 =$_POST['color2']; $message .= "Color:" . $color2; $message .= "
"; $birthDate2=$_POST['birthDate2']; $message .= "Birth Date:" . $birthDate2; $message .= "
"; $petName3 =$_POST['petName3']; $message .= "Pet Name:" . $petName3; $message .= "
"; $breed3 =$_POST['breed3']; $message .= "Breed:" . $breed3; $message .= "
"; $color3 =$_POST['color3']; $message .= "Color:" . $color3; $message .= "
"; $birthDate3=$_POST['birthDate3']; $message .= "Birth Date:" . $birthDate3; $message .= "
"; $subject ="Owner Contact Information Sheet"; $from = new SendGrid\Email($name1, $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."; } } ?>