<?php

// auto respond mail once user inserted
        ini_set( 'display_errors', 1 );
        error_reporting( E_ALL );
        $toreport = "services@platinumkaraoke.com";
        $from = "admin@platinumkaraoke.ph"; // mail from server gator
        $to = ""; // receiving mail
        $code = "PK-7gOoBKXmpijdydnH6";
        $fullname = "Jerome Glenn Puno";

        $subject = "PLATINUM KARAOKE, KARAOKE NG BAYAN - RAFFLE CODE!"; // testing subject
     // message from mail
        $message = '
    Hi, Ka-Platinum '. $fullname .'!
    
    Thank you for submitting your raffle entry, here\'s your raffle code: '. $code .'
    Kindly keep your raffle code, and don\'t let anyone see it. Announcement of winners via official Platinum Karaoke Facebook page on January 8, 2024, before 3:00.p.m. 
    
    For more updates follow us on our official social media accounts. 
    Facebook: https://www.facebook.com/ThePlatinumKaraoke
    Instagram: https://www.instagram.com/theplatinumkaraoke/
    Threads: https://www.threads.net/@theplatinumkaraoke
    Twitter: https://twitter.com/PlatinumKRK
    Tiktok: https://www.tiktok.com/@platinumkaraokeph
    Youtube: https://www.youtube.com/@PlatinumKaraokeOfficial
    Viber Community: https://bit.ly/ThePlatinumKaraokeViberCommunity
    
    *For further assistance, please call our online sales team hotline. The same-day delivery transactions are offered only within Metro Manila, subject to the Terms and Conditions. We also offer pick-up orders at our main office. We also offer orders for pick-up at our main office.
    
    Online Sales Hotline:
    <Office hours: Monday to Saturday
    08:00 am to 04:00 pm
    
    Mobile: 0917-591-4263>
    Landline: 8-866-1162 Loc. 119
    Email: ' .$toreport. '
    
    Customer Service Hotlines:
    08:00 am to 05:00 pm
    GLOBE: +639178433053<
    SMART: +63-9392497210
    SUN: +63-9334343772 - For Viber and WhatsApp users
    LANDLINE: (02) 8-866-1162 LOC 118/119
    
    Thank you for trusting us as your home theater appliances. Platinum Karaoke, Karaoke Ng Bayan!
';

        $headers = "From: " . $from;


        // mail($to,$subject,$message2,$headers);
if (mail ($to,$subject,$message,$headers)) {
    echo "The email message was sent to: " . $to . ",Raffle Code: <strong>" . $code ."</strong> and Fullname: " . $fullname;
} else {
    echo "The email message was not sent.";
}




?>