From 40cbe989e961d9c31bf297ecd5b0eaf4c849ff84 Mon Sep 17 00:00:00 2001 From: JaveriyaSaleem Date: Tue, 14 May 2024 23:49:28 +0500 Subject: [PATCH] mein to thak gaya --- forms/contact.php | 41 +++++++++++++++++++++++++++++++++++++++++ index.html | 12 ++++++------ 2 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 forms/contact.php diff --git a/forms/contact.php b/forms/contact.php new file mode 100644 index 0000000..faf58e6 --- /dev/null +++ b/forms/contact.php @@ -0,0 +1,41 @@ +ajax = true; + + $contact->to = $receiving_email_address; + $contact->from_name = $_POST['name']; + $contact->from_email = $_POST['email']; + $contact->subject = $_POST['subject']; + + // Uncomment below code if you want to use SMTP to send emails. You need to enter your correct SMTP credentials + /* + $contact->smtp = array( + 'host' => 'example.com', + 'username' => 'example', + 'password' => 'pass', + 'port' => '587' + ); + */ + + $contact->add_message( $_POST['name'], 'From'); + $contact->add_message( $_POST['email'], 'Email'); + $contact->add_message( $_POST['message'], 'Message', 10); + + echo $contact->send(); +?> diff --git a/index.html b/index.html index 51b6a6b..3422ce3 100644 --- a/index.html +++ b/index.html @@ -605,7 +605,7 @@

Contact

My Address

-

A108 Adam Street, New York, NY 535022

+

Karachi, Pakistan

@@ -614,11 +614,11 @@

My Address

Social Profiles

@@ -627,7 +627,7 @@

Social Profiles

Email Me

-

contact@example.com

+

javeriyasaleem678@gmail.com