[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Парни привет !!! Срочено нужна помощь
fediabegen
вот код
вот ссилка http://www.scansoftpos.com/index.php?optio...d=3&Itemid=1236

должен отправлять зарегистрированому пользователю но не отправляет в чем причина ?? на хочтинге в пхп mail включен

<?php
$captcha_message = '';
if(isset($_POST['button_0']))
{
$txtFullName = $_POST['txtFullName'];
$txtEmailAddress = $_POST['txtEmailAddress'];
$txtPhone = $_POST['txtPhone'];

$session =& JFactory::getSession();

if ($_REQUEST['captcha'] != $session->get('captcha'))
{
$captcha_message = "Please enter valid security code.";
}
else
{
$to = 'downloads@scansoftpos.com';

// $to = 'rishijainit@gmail.com';

$subject = 'Download Free Trial';

$from = "no-reply@scansoftpos.com";

$headers = "From: " . strip_tags($from) . "\r\n";
$headers .= "Reply-To: ". strip_tags($from) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

$message = '<html><body>';
$message .= "<p>Full Name: $txtFullName</p>";
$message .= "<p>Email Address: $txtEmailAddress</p>";
$message .= "<p>Phone: $txtPhone</p>";
$message .= '</body></html>';

mail($to, $subject, $message, $headers);


$message1 = '<p>Hello '. $txtFullName.',</p>
<p>Thank you for choosing to download ScanSoftPOS.</p>
<p><a href="http://www.ssposftp.com/setup.exe"><u>Download Link</u></a><u> </u></p>
<p>We pride ourselves in providing quality products and exceptional support. If you have any questions while evaluating/using our products give us a call. We’d be happy to answer your questions or put you in touch with one of our support engineers. You can reach us by phone at 866-905-7226.</p>
<p>Here are some links you may find useful:</p>
<p><strong> Support Information:</strong><br>
<a href="http://www.scansoftpos.com/index.php?option=com_content&view=artic le&id=124&Itemid=1224">http://www.scansoftpos.com/index.php?optio n=com_content&view=article&id=124&Itemid=1224</a></p>
<p> <strong>User Support Videos:</strong><br>
<a href="http://www.scansoftpos.com/index.php?option=com_community&view=vid eos&Itemid=1237">http://www.scansoftpos.com/index.php?option=com_comm unity&view=videos&Itemid=1237</a></p>
<p><strong> Support E-Mail:</strong><br>
<a href="mailto:support@scansoftpos.com">support@scansoftpos.com</a& gt;</p>
<p><strong> Feature Chart:</strong><br>
<a href="http://www.scansoftpos.com/index.php?option=com_content&view=artic le&id=128&Itemid=1225">http://www.scansoftpos.com/index.php?optio n=com_content&view=article&id=128&Itemid=1225</a></p>
<p><strong> Pricing:</strong><br>
<a href="http://www.scansoftpos.com/index.php?option=com_pricetable&view=pr icetables&Itemid=1226">http://www.scansoftpos.com/index.php?option=co m_pricetable&view=pricetables&Itemid=1226</a> <br>
Good luck with your evaluation, and remember, if you need any assistance at all during your evaluation, we are just a phone call or e-mail away.</p>
<p><br>
Thanks,<br>
ScanSoftPOS Corp<br>
2728 Ming Ave<br>
Bakersfield CA 93304<br>
866-905-7226</p>'
;


$from = "ScanSoftPOS<downloads@scansoftpos.com>";

$headers1 = "From: " . $from . "\r\n";
$headers1 .= "Reply-To: ". $from . "\r\n";
$headers1 .= "MIME-Version: 1.0\r\n";
$headers1 .= "Content-Type: text/html; charset=ISO-8859-1\r\n";


$subject1 = 'Thank you for choosing to download ScanSoftPOS';

//echo $txtEmailAddress;

echo mail($txtEmailAddress, $subject1, $message1, $headers1);




//echo "<meta http-equiv='refresh' content='0;url=http://www.ssposftp.com/setup.exe'>";

header("location:/index.php?option=com_content&view=article&id=132&Itemid=465") ;
//die();
}
}

?>
<div>
<
h2>Download ScanSoftPOS</h2>
</
div>
<?php
if($captcha_message != '')
{
?>
<div style="color:#F00;"><?php echo $captcha_message;?></div>
<?php
}
?>

<p>Please enter details below and a link will be emailed to you shortly</p>
<form
name="ChronoContact_Download" id="ChronoContact_Download" method="post">
<div>
<label>
Full Name</label>
<input
maxlength="150" size="30" title="" id="text_1" name="txtFullName" value="<?php echo $_POST['txtFullName'];?>" type="text" aria-required="true" required="required" aria-invalid="true">
</div>
<div>
<label>
Email Address</label>
<input
maxlength="150" size="30" title="" id="text_3" name="txtEmailAddress" value="<?php echo $_POST['txtEmailAddress'];?>" type="email" aria-required="true" required="required" aria-invalid="true">
</div>
<div>
<label>
Phone</label>
<input
maxlength="150" size="30" title="" id="text_2" name="txtPhone" value="<?php echo $_POST['txtPhone'];?>" type="text" aria-required="true" required="required" aria-invalid="true">
</div>
<div>
<label>
Security Code</label>
<img
src="captcha.php" id="captcha" /><br/>
<a
href="#" onclick="
document.getElementById('captcha').src='captcha.php?'+Math.random();
document.getElementById('captcha-form').focus();"

id="change-image">Not readable? Change text.</a><br/><br/>
<input
type="text" name="captcha" id="captcha-form" autocomplete="off" /><br/>
</div>
<div
class="form_element cf_button">
<input
class="button validate" type="submit" name="button_0" value="Submit"> <input class="button validate" type="reset" value="Reset" name="reset">
</div>
</form>


<!--<h2>No thanks, <a href="http://www.sspos.net/setup.exe" target="_blank">just start my download</a>.</h2>
-->
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.