"error", "message" => "Invalid data received"]); exit; } $product = $data['product'] ?? 'Unknown Product'; $amount = $data['amount'] ?? 0; $txHash = $data['txHash'] ?? 'No Hash provided'; $wallet = $data['wallet'] ?? 'No Wallet provided'; $adminEmail = "support@medbedquantumtechnology.org"; // ------------------------------------------------- // IMPORTANT: REQUIRE PHPMAILER LIBRARY // If you used Composer to install PHPMailer, use this: // ------------------------------------------------- use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; // Adjust this path if your 'vendor' folder is elsewhere require 'vendor/autoload.php'; // If you do NOT have Composer and downloaded PHPMailer manually, // uncomment the lines below and adjust the path: // require 'PHPMailer/src/Exception.php'; // require 'PHPMailer/src/PHPMailer.php'; // require 'PHPMailer/src/SMTP.php'; $mail = new PHPMailer(true); try { // --- SMTP CONFIGURATION (FILL THIS IN) --- $mail->isSMTP(); $mail->Host = 'mail.medbedquantumtechnology.org'; // e.g., smtp.gmail.com $mail->SMTPAuth = true; $mail->Username = 'support@medbedquantumtechnology.org'; // Your SMTP Username $mail->Password = 'CQ?Nsb&r9owjQwM6'; // Your SMTP Password $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // SSL or TLS $mail->Port = 465; // 587 for TLS, 465 for SSL // Recipients $mail->setFrom('support@medbedquantumtechnology.org', 'MedBed System'); $mail->addAddress($adminEmail); // Content $mail->isHTML(true); $mail->Subject = 'Payment Submission - ' . $product; $mail->Body = "

Payment Notification

A new payment has been submitted on the website.

Product:$product
Amount:$$amount
Target Wallet:$wallet
TX Hash:$txHash

Please verify on blockchain.

"; $mail->AltBody = "Product: $product \n Amount: $$amount \n TX: $txHash"; $mail->send(); // Return Success to Frontend echo json_encode(["status" => "success"]); } catch (Exception $e) { // Return Error to Frontend echo json_encode(["status" => "error", "message" => "Mailer Error: {$mail->ErrorInfo}"]); } // Stop script execution here so HTML below doesn't render in the AJAX response exit; } ?> MedBed Quantum Technology - Crypto Shop

Processing Payment & Sending Email...

MedBed QuantumTechnology

  • support@medbedquantumtechnology.org