PK

ADDRLIN : /proc/self/root/home/bw2hgtn172qm/www/urologysolution.in/bin/
FLL :
Current File : //proc/self/root/home/bw2hgtn172qm/www/urologysolution.in/bin/process.php

<?php
if ((isset($_POST['name'])) && (strlen(trim($_POST['name'])) > 0)) {
	$name = stripslashes(strip_tags($_POST['name']));
} else {$name = 'No name entered';}

if ((isset($_POST['address'])) && (strlen(trim($_POST['address'])) > 0)) {
	$address = stripslashes(strip_tags($_POST['address']));
} else {$address = 'No address entered';}

if ((isset($_POST['email'])) && (strlen(trim($_POST['email'])) > 0)) {
	$email = stripslashes(strip_tags($_POST['email']));
} else {$email = 'No email entered';}

if ((isset($_POST['phone'])) && (strlen(trim($_POST['phone'])) > 0)) {
	$phone = stripslashes(strip_tags($_POST['phone']));
} else {$phone = 'No phone entered';}

if ((isset($_POST['comments'])) && (strlen(trim($_POST['comments'])) > 0)) {
	$comments = stripslashes(strip_tags($_POST['comments']));
} else {$comments = 'No message entered';}
ob_start();
?>
<html>
<head>
<style type="text/css">
</style>
</head>
<body>
<table width="550" border="1" cellspacing="2" cellpadding="2">
  <tr bgcolor="#eeffee">
    <td>Name</td>
    <td><?=$name;?></td>
  </tr>
  
  <tr bgcolor="#eeffee">
    <td>Address</td>
    <td><?=$address;?></td>
  </tr>
  <tr bgcolor="#eeeeff">
    <td>Email</td>
    <td><?=$email;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Phone</td>
    <td><?=$phone;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Message</td>
    <td><?=$comments;?></td>
  </tr>
</table>
</body>
</html>
<?php
$body = ob_get_contents();
$to = "drknatarajan@yahoo.co.in";
$email = "drknatarajan@yahoo.co.in";
//$fromaddress = "admin@urologysolutions.com";
$fromaddress = $_POST['email'];
$fromname = "Online Contact";

require("phpmailer.php");

$mail = new PHPMailer();

//$mail->From     = "urologysolutions.com";
$mail->From     = $_POST['email'];
$mail->FromName = "Contact Form";
$mail->AddAddress("drknatarajan@yahoo.co.in","Name 1");
//$mail->AddAddress("another_address@example.com","Name 2");

$mail->WordWrap = 50;
$mail->IsHTML(true);

$mail->Subject  =  "Contact Information from urologysolution.com";
$mail->Body     =  $body;
$mail->AltBody  =  "This is the text-only body";

if(!$mail->Send()) {
	$recipient = $_POST['email'];
	$subject = 'Contact form failed';
	$content = $body;
	$to = "drknatarajan@yahoo.co.in";	
  mail($recipient, $subject, $content, $to, "From: $fromaddress\r\nReply-To: $email\r\nX-Mailer: DT_formmail");
  exit;

/*$to = 'nandhini@vettritech.com';
$email = 'nandhini@vettritech.com';
$fromaddress = "info@inboxtechnologies.com";
$fromname = "Online Contact";

require("phpmailer.php");

$mail = new PHPMailer();

$mail->From     = "info@inboxtechnologies.com";
$mail->FromName = "Contact Form";
$mail->AddAddress("nandhini@vettritech.com","Name 1");
//$mail->AddAddress("another_address@example.com","Name 2");

$mail->WordWrap = 50;
$mail->IsHTML(true);

$mail->Subject  =  "Demo Form:  Contact form submitted";
$mail->Body     =  $body;
$mail->AltBody  =  "This is the text-only body";

if(!$mail->Send()) {
	$recipient = 'nandhini@vettritech.com';
	$subject = 'Contact form failed';
	$content = $body;	
  mail($recipient, $subject, $content, "From: info@inboxtechnologies.com\r\nReply-To: $email\r\nX-Mailer: DT_formmail");
  exit;
*/
}
?>


PK 99