Send QR as Attachment
User function sendCustomerEmail($order_info) { $qrText =$order_info->order_code; $qrFilePath = __DIR__ . '/../boxoffice/fossetts_admin/tickets/'.$qrText.'.png'; $qrFileUrl = 'boxoffice/fossetts_admin/tickets/'.$qrText.'.png'; // Production – use PHPMailer $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'mail.fossettscircus.com'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@fossettscircus.com'; $mail->Password = 'OarNSHeCPPI%OarNSHeCPPI%'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; // Add permissive SMTP options to bypass hostname validation $mail->SMTPOptions = […]