From 593b99e8f6315b3e40b27c04fb15bcb2f91ca1a0 Mon Sep 17 00:00:00 2001 From: Staycie Date: Thu, 15 Feb 2024 09:28:08 +0800 Subject: [PATCH] NEW file --- contact-us-action.php | 19 + contact-us-test.php | 1311 +++++++++++++++++++++++++++++++++++++++++ functions.php | 59 ++ 3 files changed, 1389 insertions(+) create mode 100644 contact-us-action.php create mode 100644 contact-us-test.php diff --git a/contact-us-action.php b/contact-us-action.php new file mode 100644 index 0000000..f6a1164 --- /dev/null +++ b/contact-us-action.php @@ -0,0 +1,19 @@ + + + + + + + + + + + + oBanana B2B - Elevate Your Business + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ + +
+ +
+
+
+ +
+
+ +
    +
  • +
  • +
  • +
  • +
+
+
+ + +
+
+ Free ShippingThis Week Order Over - $75 +
+
+ + +
+
+ + + + + + + +
+
+ + +
+
+ + + + + +
+ 4 +
+ + + +
+ 3 +
+ + + + + + +
+
+ +
+
+
+ + +
+
+
+
+ +
+ +
+ + + +
+ +
+ + + +
+
+ + + + + + +
+ 4 +
+ + + +
+ 3 +
+ +
+
+
+
+
+
+ + +
+
+
+ + +
+ +
+ + +
+ +
+ +
+
+
+ + + + + +
+
+ My Menu + +
+
+
+ +
+
+
+ + + + + + +
+ +
+
+
    +
  • +
  • +
  • +
  • +
+
+
+ +
+
+
+ +
+ + + +
+
+
+
+
+ My Cart + +
+ +
+
+
+ + + + + + + + + + + + + + + +
Sub-Total :$300.00
VAT (20%) :$60.00
Total :$360.00
+
+ +
+
+
+ + + +
+
+
+
+
+
+

Contact Us

+
+
+ +
    +
  • Home
  • +
  • Contact Us
  • +
+ +
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ + +
+
+
+

Contact us

+ +
+
+
+
+
+
+ + + + + + +
+
+
+
+ +
+
+ 3 +
+
+ +
+
+ 4 +
+
+ +
+ +
+
+
+ + + +
+ payment image +
+

Someone in new just bought

+
stylish baby shoes
+

10 Minutes ago

+
+ × +
+ + + +
+ +
+
+ 3 +
+
+ + + +
+ + + + +
+
+
+ whatsapp icon +
+
+
+ +
+ + + +
+
+
+

Features

+
+ + icon + +
+
+

Color Scheme

+
    +
  • +
  • +
  • +
  • +
  • +
+
+
+

Backgrounds

+ +
+
+

Full Screen mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

Dark mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

RTL mode

+
+
+
Rtl
+
On
+
Off
+
+
+
+
+

Clear local storage

+ Clear Cache & Default +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/functions.php b/functions.php index dde830a..7a51d0e 100644 --- a/functions.php +++ b/functions.php @@ -446,6 +446,65 @@ function vendorExists($email) return $count; } + +function sendEmail($fName, $lName, $email, $phone, $message) +{ + $email2 = "stacyjoycemapano@gmail.com"; + $message2 = " +

Greetings from Obanana!

+ "; + $data = [ + "Messages" => [ + [ + "From" => [ + "Email" => "webdev@obanana.com", + "Name" => "Obanana B2B" + ], + "To" => [ + [ + "Email" => $email2, + "Name" => "Subscriber" + ] + ], + "Subject" => "Obanana Contact Us Form", + "TextPart" => "Greetings from Obanana!", + "HTMLPart" => $message2 + ] + ] + ]; + + $json = json_encode($data); + + $curl = curl_init(); + curl_setopt($curl, CURLOPT_POSTFIELDS, $json); + curl_setopt_array($curl, array( + CURLOPT_URL => 'https://api.mailjet.com/v3.1/send', + CURLOPT_RETURNTRANSFER => true, + CURLOPT_ENCODING => '', + CURLOPT_MAXREDIRS => 10, + CURLOPT_TIMEOUT => 0, + CURLOPT_FOLLOWLOCATION => true, + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, + CURLOPT_CUSTOMREQUEST => 'POST', + CURLOPT_HTTPHEADER => array( + 'Content-Type: application/json', + 'Authorization: Basic ODA4MDc4ZThjMDA4NjVhYzU4MTcyNDJjNTMxY2JlZGU6MGQ4ODg3ZTdiZjY1ZWNkMmQ0NzdiOWJhZGIyYTJhY2Q=' + ), + )); + + $response = curl_exec($curl); + curl_close($curl); + + return $response; +} + + function sendOTP($email) { $email2 = "junjihadbarroga@gmail.com"; -- 2.40.1