http://suninteg.com/contact.php
I can only think the mail is being held up by a security protocol on the server? I dunno.
the PHP code is as follows:
Expand|Select|Wrap|Line Numbers
- <?php
- /*
- * Sun Integration - Consultation Request Page with Form
- *
- * Author: Dennis Klein
- *
- * Date: 6/19/2012
- */
- //Include functions
- require_once 'functionset.php';
- $msg = '<span class="a13nr">* Required field</span>';
- $field = 'irname';
- if(isset($_POST['sendButton_x'])) {
- //Sanitize the POST values, if necessary.
- if(isset($_POST['rname'])) {$rname = strip_tags($_POST['rname']);}
- if(isset($_POST['remail'])) {$remail = strip_tags($_POST['remail']);}
- if(isset($_POST['raddr'])) {$raddr = strip_tags($_POST['raddr']);}
- if(isset($_POST['rcity'])) {$rcity = strip_tags($_POST['rcity']);}
- if(isset($_POST['rstate'])) {$rstate = strip_tags($_POST['rstate']);}
- if(isset($_POST['rzip'])) {$rzip = strip_tags($_POST['rzip']);}
- if(isset($_POST['rph1'])) {$rph1 = strip_tags($_POST['rph1']);}
- if(isset($_POST['rph2'])) {$rph2 = strip_tags($_POST['rph2']);}
- if(isset($_POST['rph3'])) {$rph3 = strip_tags($_POST['rph3']);}
- if(isset($_POST['rnews'])) {$rnews = $_POST['rnews'];}
- //Input Validations
- if(!preg_match("/^['A-Za-z\-\x20\.]{2,}$/", stripslashes($rname))) {
- $msg = 'Name not valid';
- $field = 'irname';
- }
- elseif(!validEmail($remail)) {
- $msg = 'Email address not valid';
- $field = 'iremail';
- }
- elseif(($rcity != '') && (!preg_match("/^['A-Za-z\-\x20\.]{2,}$/", stripslashes($rcity)))) {
- $msg = 'City not valid';
- $field = 'ircity';
- }
- elseif(($rstate != '') && (!ctype_alpha($rstate))) {
- $msg = 'State not valid';
- $field = 'irstate';
- }
- elseif(($rzip != '') && (!is_numeric($rzip) || strlen($rzip) < 5)) {
- $msg = 'ZIP code not valid';
- $field = 'irzip';
- }
- elseif((!is_numeric($rph1) || strlen($rph1) < 3) || (!is_numeric($rph2) || strlen($rph2) < 3) || (!is_numeric($rph3) || strlen($rph3) < 4)) {
- $msg = 'Phone number not valid';
- $field = 'irph1';
- }
- else {$msg = '';}
- if($msg == '') {
- // Send "Contact" data to User and to Administrator
- $rphone = $rph1.'-'.$rph2.'-'.$rph3;
- $subject = 'Consultation Request sent from Sun Integration website';
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- $headers .= 'From: ' . 'larry@805webdesigns.com' . "\r\n";
- $sendmsg = '
- <html>
- <body>
- <basefont face="Times New Roman" size="3" color="midnightblue">
- <p>Thanks for requesting a Free Consultation. For your records, here is a copy of your request:</p>
- <p>Name: <font face="arial" color="#404040" size="2">'.$rname.'</font><br />
- Email address: <font face="arial" color="#404040" size="2">'.$remail.'</font><br />
- Address: <font face="arial" color="#404040" size="2">'.$raddr.'</font><br />
- City: <font face="arial" color="#404040" size="2">'.$rcity.'</font><br />
- State: <font face="arial" color="#404040" size="2">'.$rstate.'</font><br />
- Zip: <font face="arial" color="#404040" size="2">'.$rzip.'</font><br />
- Phone: <font face="arial" color="#404040" size="2">'.$rphone.'</font><br />
- Newsletter opt-in: <font face="arial" color="#404040" size="2">'.$rnews.'</font></p>
- <p>We will call or email you within 3 business days, and look forward to the opportunity of serving you.</p>
- <p>Customer Service<br />Sun Integration</p>
- </body>
- </html>
- ';
- mail('larry@805webdesigns.com, '.$remail, $subject, $sendmsg, $headers);
- $rname = '';
- $remail = '';
- $raddr = '';
- $rcity = '';
- $rstate = '';
- $rzip = '';
- $rph1 = '';
- $rph2 = '';
- $rph3 = '';
- $rnews = '';
- $msg = 'Thank you. A confirmation email has been sent to you.';
- $field = 'irname';
- }
- }
- else {
- //Initialize variables
- $rname = '';
- $remail = '';
- $raddr = '';
- $rcity = '';
- $rstate = '';
- $rzip = '';
- $rph1 = '';
- $rph2 = '';
- $rph3 = '';
- $rnews = '';
- }
- ?>
- <!DOCTYPE HTML>
- <html lang="en">
- <head>
- <title>Sun Integration | Contact Us</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta name="description" content="Sun Integration - Solar Advocate" />
- <meta name="keywords" content="solar, awnings" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="stylesheet" type="text/css" href="css/style.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="css/superfish.css" />
- <style type="text/css">
- h1 {
- font-size:24px;
- }
- h2 {
- font-size:15px;
- margin:10px 0 10px 0;
- }
- p {
- line-height:1.2em;
- text-align:justify;
- }
- .a13ng {
- font-family:arial;
- font-size:13px;
- font-weight:normal;
- color:#808080;
- }
- .a13nr {
- font-family:arial;
- font-size:13px;
- font-weight:normal;
- color:red;
- }
- .a14bg {
- font-family:arial;
- font-size:14px;
- font-weight:bold;
- color:#808080;
- }
- .a14br {
- font-family:arial;
- font-size:14px;
- font-weight:bold;
- color:red;
- }
- #col {
- position:relative;
- margin-top:20px;
- width:600px;
- }
- .left {
- margin-left:10px;
- margin-top:16px;
- text-align:left;
- }
- .inne {
- position:absolute;
- left:70px;
- display:inline;
- margin:-3px 0 0 0;
- }
- .inb {
- position:absolute;
- top:154px;
- left:390px;
- }
- </style>
- <script type="text/javascript" src="js/jquery.min.js"></script>
- <script type="text/javascript" src="js/functionset.js"></script>
- <script type="text/javascript" src="js/hoverIntent.js"></script>
- <script type="text/javascript" src="js/superfish.js"></script>
- <script type="text/javascript">
- //Initial check for empty form fields
- function validateForm()
- {
- var rn = document.getElementById('irname').value;
- var re = document.getElementById('iremail').value;
- var r1 = document.getElementById('irph1').value;
- var r2 = document.getElementById('irph2').value;
- var r3 = document.getElementById('irph3').value;
- if (rn==null || rn=="")
- {
- alert("Name required");
- document.getElementById('irname').focus();
- return false;
- }
- else if (re==null || re=="")
- {
- alert("Email address required");
- document.getElementById('iremail').focus();
- return false;
- }
- else if (r1==null || r1=="" || r2==null || r2=="" || r3==null || r3=="")
- {
- alert("Phone number required");
- document.getElementById('irph1').focus();
- return false;
- }
- else
- {
- return true;
- }
- }
- jQuery.noConflict()
- if (document.images) {
- preload_image_object = new Image();
- // set image url
- image_url = new Array();
- image_url[0] = "http://bytes.com/images/header.jpg";
- image_url[1] = "http://bytes.com/images/why-sub1pic1.jpg";
- image_url[2] = "http://bytes.com/images/why-sub1pic2.jpg";
- image_url[3] = "http://bytes.com/images/rb_hist.jpg";
- image_url[4] = "http://bytes.com/images/rbmo_hist.jpg";
- image_url[5] = "http://bytes.com/images/rb_news.jpg";
- image_url[6] = "http://bytes.com/images/rbmo_news.jpg";
- image_url[7] = "http://bytes.com/images/rb_test.jpg";
- image_url[8] = "http://bytes.com/images/rbmo_test.jpg";
- image_url[9] = "http://bytes.com/images/rb_gall.jpg";
- image_url[10] = "http://bytes.com/images/rbmo_gall.jpg";
- image_url[11] = "http://bytes.com/images/tpanel.png";
- var i = 0;
- for (i=0; i<=11; i++) {
- preload_image_object.src = image_url[i];
- }
- }
- </script>
- </head>
- <body onload="document.body.style.visibility='visible'">
- <div id="wrapper">
- <?php require 'header.html'; ?>
- <div id="main" style="height:930px;">
- <div id="topleft">
- <img src="http://bytes.com/images/why-sub1pic1.jpg" alt="">
- <div id="tpanel">
- <img src="http://bytes.com/images/tpanel.png" alt="">
- <h3 style="position:absolute; top:-10px; left:46px;">Pushing the<br />green revolution</h3>
- </div>
- </div>
- <div id="topright"><img src="http://bytes.com/images/why-sub1pic2.jpg" alt=""></div>
- <div id="botleft" style="width:600px;">
- <h1>Contact Us</h1>
- <h2>For a Free Consultation</h2>
- <p class="a13ng">...and to start saving money, please fill out this form, or call us at:</p>
- <p class="left a13ng">Sun Integration<br />
- 18425 Burbank Blvd, Suite 520 <br>
- Tarzana, Ca 91356</p>
- <p class="left a13ng">(818) 344 0440<br />
- Fax (818) 996 7181<br />
- contact@suninteg.com</p>
- <p style="margin-top:-10px;"> </p>
- <form name="conForm" method="post" action="<?php echo $_SERVER['PHP_SELF'].'#amsg'; ?>">
- <div id="col" class="a13ng">
- <div class="left">Name:<span class="a14br">*</span><div class="inne"><input type="text" name="rname" id="irname" class="a13ng" style="width:200px;" maxlength="60" value="<?php echo $rname; ?>" /></div></div>
- <div class="left">Email:<span class="a14br">*</span>
- <div class="inne"><input type="text" name="remail" id="iremail" class="a13ng" style="width:200px;" maxlength="128" value="<?php echo $remail; ?>" /></div>
- </div>
- <div class="left">Address:<div class="inne"><input type="text" name="raddr" id="iraddr" class="a13ng" style="width:200px;" maxlength="60" value="<?php echo $raddr; ?>" /></div></div>
- <div class="left">City:<div class="inne"><input type="text" name="rcity" id="ircity" class="a13ng" style="width:200px;" maxlength="40" value="<?php echo $rcity; ?>" /></div></div>
- <div class="left">State:<div class="inne"><input type="text" name="rstate" id="irstate" class="a13ng" style="width:20px;" maxlength="2" value="<?php echo $rstate; ?>" />
- ZIP: <input type="text" name="rzip" id="irzip" class="a13ng" style="width:100px;" maxlength="10" value="<?php echo $rzip; ?>" /></div></div>
- <div class="left">Phone:<span class="a14br">*</span><div class="inne"><input type="text" name="rph1" id="irph1" class="a13ng" style="width:30px;" maxlength="3" value="<?php echo $rph1; ?>" /> -
- <input type="text" name="rph2" id="irph2" class="a13ng" style="width:30px;" maxlength="3" value="<?php echo $rph2; ?>" /> -
- <input type="text" name="rph3" id="irph3" class="a13ng" style="width:40px;" maxlength="4" value="<?php echo $rph3; ?>" /></div></div>
- <p> </p>
- <div class="left"><input type="checkbox" name="rnews" value="Y" <?php if($rnews == 'Y') {echo 'checked="checked"';} ?> /> Opt-in to receive our monthly newsletter?</div>
- <a name="amsg"></a>
- <div class="left a14br"><?php echo $msg; ?></div>
- <div class="inb"><input type="image" name="sendButton" id="sendB" style="outline-width:0;" src="http://bytes.com/images/b_send.png" alt="Send referral" onclick="return validateForm()"
- onmouseover="changeImage('sendB','images/bmo_send.png')" onmouseout="changeImage('sendB','images/b_send.png')" /></div>
- </div>
- </form>
- <script type="text/javascript">
- document.getElementById('<?php echo $field; ?>').focus();
- </script>
- </div>
- <div id="botright">
- <a href="calculator.php">
- <input type="image" id="calcB" src="http://bytes.com/images/rb_calc.jpg" alt="Solar Calculator" style="margin-bottom:2px;"
- onmouseover="changeImage('calcB','images/rbmo_calc.jpg')" onmouseout="changeImage('calcB','images/rb_calc.jpg')" />
- </a>
- <a href="project-galleries.php">
- <input type="image" id="gallB" src="http://bytes.com/images/rb_gall.jpg" alt="Photo gallery of our projects" style="margin-bottom:2px;"
- onmouseover="changeImage('gallB','images/rbmo_gall.jpg')" onmouseout="changeImage('gallB','images/rb_gall.jpg')" />
- </a>
- <a href="services.php">
- <input type="image" id="servB" src="http://bytes.com/images/rb_serv.jpg" alt="Our Services" style="margin-bottom:2px;"
- onmouseover="changeImage('servB','images/rbmo_serv.jpg')" onmouseout="changeImage('servB','images/rb_serv.jpg')" />
- </a>
- <a href="history-sun-integration.php">
- <input type="image" id="histB" src="http://bytes.com/images/rb_hist.jpg" alt="Our history" style="margin-bottom:2px;"
- onmouseover="changeImage('histB','images/rbmo_hist.jpg')" onmouseout="changeImage('histB','images/rb_hist.jpg')" />
- </a>
- <a href="newsletter.php">
- <input type="image" id="newsB" src="http://bytes.com/images/rb_news.jpg" alt="CAGD in the news" style="margin-bottom:2px;"
- onmouseover="changeImage('newsB','images/rbmo_news.jpg')" onmouseout="changeImage('newsB','images/rb_news.jpg')" />
- </a>
- </div>
- </div>
- <?php require 'footer.html'; ?>
- </div>
- </body>
- </html>
Any help will be huge, thanks 805 web designs.