<?php 
//Don't run this unless we're handling a form submission
if (array_key_exists('email', $_POST)) {
    date_default_timezone_set('Etc/UTC');

    require 'mail/PHPMailerAutoload.php';

    //Create a new PHPMailer instance
    $mail = new PHPMailer;
    //Tell PHPMailer to use SMTP - requires a local mail server
    //Faster and safer than using mail()
    $mail->isSMTP();
   $mail->Host = "smtp.sendgrid.net";
    $mail->Port = 587; 
	$mail->SMTPAuth = true;
$mail->Username = "sharosharmila@gmail.com";
//Password to use for SMTP authentication
$mail->Password = "P@ssw0rd12345";
    //Use a fixed address in your own domain as the from address
    //**DO NOT** use the submitter's address here as it will be forgery
    //and will cause your messages to fail SPF checks
	
    $mail->From         = 'tmpcceo@gmail.com';
$mail->FromName     = 'playingcardsmanufacturer.com';
    //Send the message to yourself, or whoever should receive contact for submissions
    $mail->addAddress('sharosharmila@gmail.com', 'John Doe');
    //Put the submitter's address in a reply-to header
    //This will fail if the address provided is invalid,
    //in which case we should ignore the whole request
    if ($mail->addReplyTo($_POST['email'], $_POST['name']))
		{
        $mail->Subject = 'Quote form';
        //Keep it simple - don't use HTML
        $mail->isHTML(false);
        //Build a simple message body
        $mail->Body = <<<EOT
		First Name: {$_POST['fname']}
		Last Name: {$_POST['lname']}
		Email: {$_POST['email']}
		Phone: {$_POST['telno']}
		Company Name: {$_POST['cname']}
		Telephone: {$_POST['telno']}
		Mobile : {$_POST['mobileno']}
		Address: {$_POST['address']}
		City: {$_POST['city']}
		Zip Code: {$_POST['zipcode']}
		State: {$_POST['state']}
		Country: {$_POST['country']}
		Fax: {$_POST['fax']}
		
		Plastic Coated Paper: {$_POST['plastic_coated_paper']}
		100% Pure Plastic: {$_POST['pure_plastic']}
		Quantity: {$_POST['quantity']}
		Specifications: {$_POST['size_specifications']}
		Enter your Custom Size and Shape: {$_POST['custom_size_shape']}
		Number of cards per deck: {$_POST['cards_per_deck']}
		Playing Card Faces: {$_POST['playing_card_faces']}
		Colors to be printed on Front: {$_POST['colors_to_be_printed_on_front']}
		Colors to be printed on Back: {$_POST['colors_to_be_printed_on_back']}
		Panton Special Color Requirement: {$_POST['panton_special_color_requirement']}
		Wrapping : {$_POST['wrapping']}
		Coating Finish : {$_POST['coating_finish']}
		Gold Foil Options : {$_POST['gold_foil_option']}
		Feel Of The Cards: {$_POST['feel_of_card']}
		Number of Instruction Sheets : {$_POST['no_of_instruction_sheet']}
		Instruction Sheet Paper: {$_POST['instruction_sheet_paper']}
		Instruction Sheet Printing Options : {$_POST['instruction_sheet_printing_options']}
		Colors for the instruction sheet: {$_POST['colors_for_instruction_sheet']}
		Size for Booklet /Number of Pages: {$_POST['booklet']}
		Instruction Booklet Paper: {$_POST['instruction_booklet_paper']}
		Instruction Booklet Printing Options: {$_POST['instruction_booklet_printing_options']}
		Colors for the instruction Booklet: {$_POST['colors_for_instruction_booklet']}
		Packaging : {$_POST['packaging']}
		Display Pack Options : {$_POST['display_pack_option']}
		Mode of Delivery : {$_POST['mode_of_delivery']}
		Delivery Time: {$_POST['delivery_time']}
		Custom Packaging Enter Your Details: {$_POST['details']}
		
		
		
EOT;
        //Send the message, check for errors
        if (!$mail->send()) {
            //The reason for failing to send will be in $mail->ErrorInfo
            //but you shouldn't display errors to users - process the error, log it on your server.
            $msg = 'Sorry, something went wrong. Please try again later.';
        } else {
            $msg = 'Message sent! Thanks for contacting us.';
        }
    } else {
        $msg = 'Invalid email address, message ignored.';
    }
}
?>
<!DOCTYPE html>

<html>
	<head>
		<title> Order Playing Cards | Playing Cards Manaufacturer | Playing Card</title>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="description" content="The T.M. Playing Card Manufacturing company in the USA offers world class Personalized, branded, custom & wedding playing cards at rates that would make your jaw drop." />
		<meta name="keywords" content="Playing Card Manufacturers, Playing Card Manufacturer company, black playing cards, customized playing cards, casino card game, personalized playing cards, poker cards, Wedding playing cards" />
		<script type="application/x-javascript"> addEventListener("load", function() {setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
		<link rel="canonical" href="http://www.playingcardmanufacturer.com/playingcards-quote.php" />
		<META name="ROBOTS" content="index, follow">
		<link rel="alternate" type="application/rss+xml" title="Playing Cards Manufacturer comapany" href="http://www.playingcardmanufacturer.com/rss.xml" />			
		<meta property="og:title" content="Playing Card Manufacturer | Playing Cards Manufacturers">
		<meta property="og:site_name" content="Playing Card Manufacturers company">
		<meta property="og:url" content="http://www.playingcardmanufacturer.com/playingcards-quote.php">
		<meta property="og:description" content="We at Playingcardmanufacturer.com in are dedicated to offer world class playing cards at rates that would make your jaw drop.">
		<meta property="og:type" content="product">
		<meta property="og:image" content="http://www.playingcardmanufacturer.com/images/image/casino-playing-cards.jpg"/>
		<meta property="og:locale" content="en_US"/>
		<meta property="og:keywords" content="Playing Card Manufacturer, Playing Cards Manufacturers, Playing Cards Manufacturer"/>
		<meta name="twitter:card" content="summary_large_image">
		<meta name="twitter:site" content="PlayingcardsUSA">
		<meta name="twitter:title" content="Playing Card Manufacturer | Playing Cards Manufacturers">
		<meta name="twitter:description" content="We at Playingcardmanufacturer.com in are dedicated to offer world class playing cards at rates that would make your jaw drop.">
		<meta name="twitter:image" content="http://www.playingcardmanufacturer.com/images/image/Transparent-PVC-Packaging.jpg" />
		<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-30365726-5']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js/'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
		<meta name="google-site-verification" content="EeWeWI5HsH16kUaOoO33gpUPPXglLX7QMcnTDT3vCBg" />
		<meta name="msvalidate.01" content="19E1B6D623D69E01EDDE5CF1FA3F9E7E" />
		<meta name="yandex-verification" content="f62fe0493938964e" />
		<script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter39688780 = new Ya.Metrika({ id:39688780, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true, ecommerce:"dataLayer" }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js/"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script>
		<!--<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" />-->
		<!--bootstrap--><link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
		<!--coustom css-->
		<link href="css/Breadcrumbstyle.css" rel="stylesheet" type="text/css"/>
		<link href="css/style.css" rel="stylesheet" type="text/css"/>
		<link href="css/styleupdated.css" rel="stylesheet" type="text/css"/>
		<!--default-js--><script src="js/jquery-2.1.4.min.js"></script>
		<!--bootstrap-js--><script src="js/bootstrap.min.js"></script>
		<!-- Hide this line for IE (needed for Firefox and others) --><![if !IE]><link rel="icon" href="images/3.png" type="image/x-icon" /><![endif]><!-- This is needed for IE -->
		<link rel="shortcut icon" href="images/playing-cards-manufacturer-fevicon.ico" type="image/ico"  alt="PCM fevicon image" />
		
</head>
<body>
	<!-- Header--><?PHP include("include files/header.php");?><!-- End of Header -->	
	<!-- Navigation Bar--><?PHP include("include files/navigation.php");?><!-- End of Navigation -->		
	<!-- banner -->
	<!-- breadcrumb --><div id='location' itemscope itemtype="http://schema.org/BreadcrumbList"><div id="BannerAndNavigatorHtmlBlock_StoreNavigator_pnNavigator" class="btn-group btn-breadcrumb"><span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" class="btn btn-default"><a itemprop="item" href="/"><span class="glyphicon glyphicon-home" itemprop="name"></span></a><span itemprop="position" content="1"></span></span><span class="btn btn-success" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">Fill Quote Form</span><span itemprop="position" content="2"></span></span></div></div>
<h1>
<?php if (!empty($msg)) {
    echo "<h2>$msg</h2>";
} ?></h1>
<div id="statcounter_image" style="display:inline;"><a title="hit counter" href="http://statcounter.com/free-hit-counter/" class="statcounter"><img src="http://c.statcounter.com/9451987/0/b7784462/1/" alt="hit counter" style="border:none;" /></a></div>
	<!--footer--><?PHP include("include files/footer.php");?><!--End Footer Bottom-->
</body>
</html>
