One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thoa
/
public_html
/
Edit File:
mail.php
<?php $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $message = $_POST['subject']; $content = $_POST['content']; require_once 'PHPMailer-master/PHPMailerAutoload.php'; $mail = new PHPMailer; /* $mail->SMTPDebug = 2; */ // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'mail.thoa.in'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'test@thoa.in'; // SMTP username $mail->Password = 'Ganesh@123'; /* $mail->SMTPSecure = "ssl"; */ // SMTP password //$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; // TCP port to connect to $mail->From = 'test@thoa.in'; $mail->FromName = 'THOA'; $mail->addAddress('info@thoa.in'); $mail->isHTML(true); $mail->Subject = 'THOA Enquiry Contact Form'; $mail->Body = "<html> <head> <title>Enquiry from the User</title> </head> <body> <table> <tr><td><b>Name : </b> $name</td></tr> <tr><td><b>Email Id :</b> $email</td></tr> <tr><td><b>Phone No :</b> $phone</td></tr> <tr><td><b>Subject :</b> $message</td></tr> <tr><td><b>Message :</b> $content</td></tr> </table> </body> </html> "; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $send = $mail->send(); // Always set content-type when sending HTML email /* $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // More headers $headers .= 'From:'. $email . "\r\n"; $send = mail($to,$subject,$message,$headers); */ if($send){ ?> <div style="height:300px; padding-top:150px; padding-right:20px; text-align:center; font-size:18px; line-height:25px;"> <img src="images/logo/newthoa.png" width="500px"/><br /> Thank you for writing to us. Our team will get back to you at the earliest. </div> <script type="text/javascript"> <!-- setInterval(function(){newpage()},10000); function newpage() { window.location = "index.php" } //--> </script> <?php } ?>
Simpan