<?php if (isset($_POST['send'])) { //$name = strip_tags($_POST['name']) ; $msg = strip_tags($_POST['message']); $from = strip_tags($_POST['email']); //$ph = strip_tags($_POST['ph']); //$q=""; $to = $ad['email']; //$to = "*****@*****.**"; $subject = "A reply on your Ad [YourKart]"; $htmlx = file_get_contents('email/pm.html'); $adlink = 'http://www.yourkart.com/viewad.php?id=' . $id_bak; $params = array("{adlink}", "{adtitle}", "{message}", "{sender}"); $values = array($adlink, $ad['title'], $msg, $from); $htmlx = str_replace($params, $values, $htmlx); ykmail($to, $from, $subject, $htmlx); message("Message Sent Successfully ! Please check your email periodically for reply from Seller."); }
<?php include 'kart/kartlib.php'; ykmail('*****@*****.**', '*****@*****.**', 'test sub', 'test message');
<?php $e = 0; if (isset($_POST['button'])) { $name = strip_tags($_POST['name']); $email = strip_tags($_POST['email']); $captcha = $_POST['captcha']; //echo $captcha.' '.$_SESSION['img_ver']; if ($_SESSION['img_ver'] == $captcha) { $to = "*****@*****.**"; ykmail($to, $email, 'Campus add request [YourKart]', $name); message('Your request has been received !! We will get back to you in few hours :) '); $e = 0; } else { echo '<font color="red">Invalid Captcha Code !!</font>'; $e = 1; } } ?> <script src="kart/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="kart/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <script src="kart/SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script> <link href="kart/SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" /> <form id="form1" name="form1" method="post" action="addcampus.php"> <table width="620" border="0"> <tr> <td width="133">College Name</td> <td width="477"><span id="sprytextfield11"> <label> <input name="name" type="text" id="text1" value="<?php echo $name;