$appName Logo

Payment Sent - $appName

Thank you for being a valued driver on the $appName platform.

We have sent a payment of $totalAmount EGP to your account $accountBank.

Please note that it may take a few days for your bank to process this transaction.

We appreciate your efforts and are proud to have you on board with $appName.

Regards,
tripz Team

tripz, Egypt | $domain

"; // محتوى الإيميل - باللغة العربية $bodyEmailAr = "
$appName

تم إرسال الدفعة - $appName

شكرًا لك لكونك سائقًا مميزًا على منصة $appName.

لقد تم إرسال دفعة قدرها $totalAmount جنيه إلى حسابك $accountBank.

يرجى ملاحظة أن عملية التحويل قد تستغرق بضعة أيام حسب إجراءات البنك.

نقدّر جهودك ونتطلع إلى استمرار الشراكة معك على تطبيق $appName.

مع التحية،
فريق $appName

$appName - مصر | $domain

"; // إعدادات الإيميل $supportEmail = 'support@tripz-egypt.com'; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; $headers .= "From: tripz Egypt <$supportEmail>\r\n"; // إرسال الإيميل إن وُجد عنوان صالح if (!empty($driverEmail)) { $subject = "Payment Sent - $appName"; $message = ($language === 'ar') ? $bodyEmailAr : $bodyEmail; if (mail($driverEmail, $subject, $message, $headers)) { jsonSuccess(null, "Email sent successfully to $driverEmail"); } else { jsonError("Failed to send email to $driverEmail"); } } else { jsonError("Invalid or missing driver email address."); } ?>