我想向我的客户发送邮件,并且在身体中我想要一个在60分钟后将乘以2的值。
假设在下午3点。我看到了' 10'在我的邮件正文中,然后在下午4点。我将在邮件正文中看到'
我正在使用PHP脚本发送邮件。
我希望此行的$结果在60分钟后乘以2
因此,如果您以24 * 7开设商店,那么您的广泛收入将 $ result
谢谢!
这是我的代码:
<?php
/* subject and email varialbles*/
session_start();
$emailSbuject = 'New Client Details';
$webMaster = 'vivek@h.com';
$emailSbuject2 = 'Thank you for calculating your revenue';
$client = ' $emailFeild\r\n';
/*gathering data variables*/
$nameFeild = $_POST['name'];
$phoneFeild = $_POST['phone'];
$emailFeild = $_POST['email'];
$dayFeild = $_POST['day'];
$timeFeild = $_POST['time'];
$revenueFeild = $_POST['revenue'];
$result = (($revenueFeild*7*24)/($dayFeild*$timeFeild));
// admin message body
$body= <<<EOD
Contact Form Details of $nameFeild
Name: $nameFeild \n
Email: $emailFeild \n
Contact Phone: $phoneFeild \n
Revenue: $result \n
EOD;
// Client message body
$body2 = <<<EOD
<p style="margin-left:10px;font-family:Calibri"><img alt="" src="http://www.h.com.au/images/logo.gif"></p>
Dear $nameFeild,
<p style="font-family:Calibri">Thank you for contacting me. One of our representatives will contact you the soonest. If you have more questions or information needed, please let us know. We are happy to serve you ! </p>
<p style="font-family:Calibri;color:maroon">How 24*7 can impact your business ?</p>
<p style="font-family:Calibri">24*7 means, if you are located in kolkata,people of kolkata is no longer your only "would be customers".
Rather the people of the entire globe will be able to see and discover your services and materials. Can you afford to lose their attention ego can see and disscover
your materials and services ?
<br />
<br />
Do you NOT want to sell your stuff to a person from New York? And 6 PM, which is the generally accepted time for purhasing something(after their office hours), from
your establishment at New York means your Indian Time 3:30 AM. Do you still think, you can afford to lose it ?
</p>
<p style="font-family:Calibri;color:maroon">Our Simple Math Solution</p>
<p style="font-family:Calibri">If you have 100,000 rupees per month revenue, and you are taking 15 days time to think over this solution, you are potentially losing an opportunity to gain by INR 133,333/2 = Rs. 68,517/- . In case you are having a revenue of 500,000 per month, your 15 days indecision will cost you INR 3,42,585. And you can potentially <strong>STOP this drain by paying us INR 15,000 as soon as possible.</strong></p>
<p style="font-family:Calibri;color:maroon">You gave <strong>$dayFeild</strong> as your shop opening days per week, <strong>$timeFeild</strong> as your shop opening hours per day and <strong>$revenueFeild</strong> as your approximated revenue
<br />
So if you open your shop 24*7 then your aprroximated revenue will be <strong>$result</strong></p>
<p style="font-family:Calibri;color:maroon">So dont waste your time. Time is running. CALL US NOW</p>
<p style="font-family:Calibri">my Team
<br> http://www.s.com <br> help@s.com </p>
<p style="font-size:x-small;color:#0099FF;font-family:Calibri">This e-mail was automatically sent by me Administration Directory and is for your reference. Please do not reply to this e-mail address.<br>
Powered by me.</p>
EOD;
$headers = "From: $emailFeild\r\n";
$header = "From: $noreply@me.com\nMIME-Version: 1.0\nContent-Type: text/html; charset=utf-8\n";
$success = mail($webMaster,$emailSbuject,$body,$headers);
$success1 = @mail($emailFeild,$emailSbuject2,$body2,$header);
/*Result*/
$theResults = <<<EOD
EOD;
echo "$theResults";
$_SESSION['result'] = $result;
header("Location: thankyou.php");
exit;
?>