Wednesday, May 6, 2015

How to create custom template for php

<?php

//if(isset($_POST['submit']))
{
$id=$_GET['id'];
$email=$_GET['email'];
$uname=$_GET['uname'];
include_once("conn.php");
$query="select username,mobile from wp_call_user where username='".$uname."'";
//echo $query;
$result=mysql_query($query);
$row = mysql_fetch_array($result);
$caller= $row['username'];
$mob= $row['mobile'];
//$user_id=$_GET['id'];
//$user_email=$_GET['email'];
//$uname=$_GET['uname'];
    $to = $email;
    $subject = ' Proposal';
    $from = 'dharamart@dharamart.com';
     $user_email='dharamart@dharamart.com';
    // To send HTML mail, the Content-type header must be set
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
     //create header
    $headers .= 'From: '.$user_email."\r\n".

        'Reply-To: '.$user_email."\r\n" .

        'X-Mailer: PHP/' . phpversion();

   

    // Compose a simple HTML email message
   $message = "<html><head>";
$message = "<style type='text/css'>.don{background-image: url(http://www.dharamart.com/callcenter/main-bg-dark.png); background-size: 100% 100%; background-color:black; background-position: top center; background-repeat: repeat;height: 350px;}</style>";
$message .= "</head>";
$message .= "<body bgcolor='#e7e5d9' >";
$message .= "<div style='width:100%;background-color:#bfbfbf;'>";
$message .= "<table style='background:#e7e5d9;width:900px;'>";
$message .= "<tbody>";
$message .= "<tr><td colspan='3' align='center'><div style='background-image: url(http://www.dharamart.com/callcenter/main-bg-dark.png); background-size: 100% 100%; background-color:#000; background-position: top center; background-repeat: repeat;height: 350px;'><div style='font-size:50px;color:white;margin-top:20px;left:25%;top:17%;position:absolute;align:justify;'>Make your <br> wallet full <br>Register Now</div></div></td></tr>";
$message .= "<tr><td width='10%'></td><td width='80%'>";
$message .= "<p align='justify'><b>Dear Sir/Ma'm,</b><br/><br/>";
$message .= "&nbsp;&nbsp;&nbsp;Welcome!!! To a Whole new World Only and Only for Developers known as dharamart  Store. dharamart App Store is reaching all Freelancers who are Software Developers & for those Software Developers who make Applications & Software’s for their own benefits. I would like to inform you that dharamart App Store is similar to Play Store and App Store with a difference. On App Store and Play Store you can only upload your Free or Paid Mobile Applications for eg. Games, Books, Utilities etc. Well as on dharamart App Store you can upload your Free or Paid Mobile Applications for eg. Games, Books, Utilities etc. You can upload the Application Source Code of the Mobile Application that you have uploaded and too top it off you can upload your Desktop Software’s. The best part is Play Store supports Android Operating Phones and App Store supports IOS Operating Phones well as dharamart App Store supports applications for Windows, Blackberry, Android, Bada, Linux, Fire Fox & IOS Operating Phones. We also allow you to upload your App Source Code of the Mobile App with a free registration. The best part is you can also upload your Desktop Software’s on our website. dharamart App Store is giving you best bargain in the market by giving you all the above mentioned options for a Lifetime that too with Unlimited Space.";
$message .= "Now you must be wondering or having all sorts of queries shooting in your brains like What’s the deal?";
$message .= "What would be the Price for such a Fabulous Offer?</p>";
$message .= "<p align='center'>It must be Expensive….</p>";
$message .= "<p align='center'>THE WAIT IS OVER…</p>";
$message .= "<p align='center'>Just for INR 2000.00</p>";
$message .= "<p align='justify'>You can avail all the benefits that too for a Lifetime and that too with Unlimited Space.";
$message .= "NOW… DON’T YOU FEEL IT IS A WONDERFUL OFFER. What are you waiting for… Still If you want more we have got more up our sleeve for you… That’s not all that we Offer!!! ";
$message .= "If you register within the Next 2 Days on receiving this mail we will give you a GUARANTEE of 500 DOWNLOADS (Yes you are reading it right… Your eyes aren’t deceiving you…) for any of the First 3 Mobile Applications (Be it Free or Be it Paid) or any 3 Desktop Software’s that you upload on dharamart App Store. Please click this link www.dharamart.com <br/>";
$message .= "<center>&</center> <br/>";
$message .= "If you register TODAY we will give you FREE Accidental Insurance Coverage from our end along with the 500 DOWNLOADS for any of the First 3 Mobile Applications (Be it Free or Be it Paid) or any 3 Desktop Software’s that you upload on dharamart App Store. Please click this link www.dharamart.com WHAT ARE YOU WAITING FOR……";
$message .= "If you have any Problems with the registration feel free to give me a Call";
$message .= "Or";
$message .= "If you require any further clarifications you can surely call me";
$message .= "<br><br>";
$message .= "<b>".$caller."</b> - +91 ".$mob."</br><br/>";
$message .= "Looking forward in you being a part of our World.";
$message .= "</p>";
$message .= "<p><br/>";
$message .= "Thanks<br>";
$message .= "dharamart  Store";
$message .= "</p>";
$message .= "</td><td width='10%'></td></tr>";
$message .= "<tr><td colspan='3' align='center' style='background-color:#0a0a0a;height:70px;v-align:middle;color:white;'>Unsubscribe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2015 dharamart</td></tr>";
$message .= "</tbody>";
$message .= "</table>";
$message .= "</div>";
$message .= "</body>";
$message .= "</html>";
   

    // Sending email

    if(@mail($to, $subject, $message, $headers)){

        echo 'Your mail has been sent successfully.';
echo "<script> location.replace('home-caller.php');</script>";

    } else{

        echo 'Unable to send email. Please try again.';
    }
}
?>


create cool one with your creativity

No comments:

Post a Comment

Dharamart.blogspot.in