Last active
June 21, 2023 12:19
-
-
Save sambello247/bb5f7525c97a9b3f64def0c94925b701 to your computer and use it in GitHub Desktop.
PHP Contact #Contact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ===============================================================================// | |
| $to = "devsam247@gmail.com"; | |
| //===============================================================================// | |
| $firstname = $_POST['firstname']; | |
| $lastname = $_POST['lastname']; | |
| $streetaddress = $_POST['streetaddress']; | |
| $city = $_POST['city']; | |
| $zipcode = $_POST['zipcode']; | |
| $state = $_POST['state']; | |
| $phone = $_POST['phone']; | |
| $email = $_POST['email']; | |
| $subject = 'Kickstart download submitted'; | |
| /* Let's prepare the message for the e-mail */ | |
| $message = "Hello! | |
| Your file has been downloaded by: | |
| First Name: $firstname | |
| Last Name: $lastname | |
| Street Adress: $streetaddress | |
| City: $city | |
| Zip code: $zipcode | |
| State: $state | |
| Phone: $phone | |
| Email: $email | |
| © 2020 Kickstart by Adrites Multimedia. | |
| "; | |
| $headers = "From: $email"; | |
| mail($to, $subject, $message, $headers) ; | |
| /* Let's prepare the message for autoresponder */ | |
| $headersAutoRep = "From Kickstart by Adrites : $to"; | |
| $subjectAutoRep = "Kiskstart downloadable file"; | |
| $messageAutoRep = "Thank you for downloading our content, we will keep you uptodate on new release."; | |
| mail($email, $subjectAutoRep, $messageAutoRep, $headersAutoRep); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment