<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Contact us</title>
<script language = "Javascript">
function Validate(){
var name=document.loginForm.fname
var mail=document.loginForm.email
var sadd=document.loginForm.sadd
var mobile=document.loginForm.mobile
if ((name.value==null)||(name.value=="")){
alert("Please Enter User Name")
//uid.focus()
return false
}
if ((mail.value==null)||(mail.value=="")){
alert("Please Enter Email Address")
//pwd.focus()
return false
}
if ((sadd.value==null)||(sadd.value=="")){
alert("Please Enter Street Address")
//pwd.focus()
return false
}
if ((mobile.value==null)||(mobile.value=="")){
alert("Please Enter Mobile Number")
//pwd.focus()
return false
}
else
{
return true
}
}
function disableall(){
resedential(true)
commercial(true)
}
function resedential(val){
document.getElementById("divResidential").style.display=(val==true)?"none":"table-row-group"
for (i=1;i<=9;i++){
document.getElementById("ip"+i).disabled=val;
}
}
function commercial(val)
{
document.getElementById("divCommercial").style.display=(val==true)?"none":"table-row-group"
for (i=10;i<=16;i++){
document.getElementById("ip"+i).disabled=val;
}
}
function resedentialEn(){
commercial(true)
resedential(false)
}
function commercialEn(){
resedential(true)
commercial(false)
}
</script>
</head>
<body onload="disableall()">
<center>
<h1><font face="calibri" color="#000000">Contact us</font></h1>
<hr width="100%">
</center>
<form id="loginForm" name="loginForm" method="post" onsubmit="return Validate()" action="contactus.php">
<table>
<tr><td><font >First Name</font></td><td><input id="fname" type="text" name="fname" /><img src="Tick-red.png" height="25" width="25" /></td></tr>
<tr><td><font >Last Name</font></td><td><input type="lname" name="lname" /></td></tr>
<tr><td><font >Email Address</font></td><td><input id="email" type="text" name="email" /><img src="Tick-red.png" height="25" width="25" /></td></tr>
<tr><td><font >Street Address</font></td><td><input id="saddress" type="text" name="sadd" /><img src="Tick-red.png" height="25" width="25" /></td></tr>
<tr><td><font >Suburb</font></td><td><input id="suburb" type="text" name="suburb" /></td></tr>
<tr>
<td><font >State</font></td><td><input id="state" type="text" name="state" /></td>
<td><font >Postal Code</font></td><td><input id="pcode" type="text" name="pcode" /></td>
</tr>
<tr><td><font >Phone#</font></td><td><input id="phone" type="text" name="phone" /></td></tr>
<tr><td><font >Mobile</font></td><td><input id="mobile" type="text" name="mobile" /><img src="Tick-red.png" height="25" width="25" /></td></tr>
<tr><td colspan="3" bgcolor="yellow">Type of Property</td></tr>
<tr>
<td><input type="radio" name="resradio" value="RESIDENTIAL (HOUSE,UNIT,TOWNHOUSE,CARS,BOATS ETC)" onchange="resedentialEn()"></td>
<td>RESIDENTIAL (HOUSE,UNIT,TOWNHOUSE,CARS,BOATS ETC)</td>
</tr>
<tr>
<td><input type="radio" name="resradio" value="COMMERCIAL (OFFICE,RETAIL,STRATA,FACTORY ETC)" onchange="commercialEn()"></td>
<td>COMMERCIAL (OFFICE,RETAIL,STRATA,FACTORY ETC)</td>
</tr>
<tr><td colspan="3" bgcolor="yellow">RESIDENTIAL</td></tr>
<tbody style="width:1000px;height:20px;background-color:#666666" id="divResidential">
<tr bgcolor="666666">
<td><input type="checkbox" name="residential[]" id="ip1" value="CARPET CLEANING"/>CARPET CLEANING</td>
<td><input type="checkbox" name="residential[]" id="ip2" value="CAR SEAT"/>CAR SEAT</td>
</tr>
<tr bgcolor="666666">
<td><input type="checkbox" name="residential[]" id="ip3" value="UPHOLSTERY"/>UPHOLSTERY</td>
<td><input type="checkbox" name="residential[]" id="ip4" value="BLINDS" />BLINDS</td>
</tr>
<tr bgcolor="666666">
<td><input type="checkbox" name="residential[]" id="ip5" value="LEATHER"/>LEATHER</td>
<td><input type="checkbox" name="residential[]" id="ip6" value="MATRESSES"/>MATRESSES</td>
</tr>
<tr bgcolor="666666">
<td><input type="checkbox" name="residential[]" id="ip7" value="OTHER(SPECIFY)"/>OTHER(SPECIFY)</td>
<td><input type="checkbox" name="residential[]" id="ip8" value="RUGS"/>RUGS</td>
</tr>
<tr bgcolor="666666"><td><input type="text" height="50" width="800" name="specifications" id="ip9" value="specifications"/></td></tr>
</tbody>
<tr><td colspan="3" bgcolor="yellow">Commercial</td></tr>
<tbody style="width:1000px;height:20px;back-ground-color:#666666" id="divCommercial">
<tr bgcolor="666666">
<td><input type="checkbox" name="commercial[]" id="ip10" value="CARPET CLEANING"/>CARPET CLEANING</td>
<td><input type="checkbox" name="commercial[]" id="ip11" value="PARTICIAN"/>PARTICIAN</td>
</tr>
<tr bgcolor="666666">
<td><input type="checkbox" name="commercial[]" id="ip12" value="OFFICE CHAIRS"/>OFFICE CHAIRS</td>
<td><input type="checkbox" name="commercial[]" id="ip13" value="VINYL"/>VINYL</td>
</tr>
<tr bgcolor="666666">
<td><input type="checkbox" name="commercial[]" id="ip14" value="OTHER(SPECIFY)"/>OTHER(SPECIFY)</td>
<td><input type="checkbox" name="commercial[]" id="ip15" value="LEATHER"/>LEATHER</td>
</tr>
<tr bgcolor="666666"><td><input type="text" height="50" width="800" name="specifications" value="" id="ip16"/></td></tr>
</tbody>
<tr><td colspan="3" bgcolor="yellow">Aditional</td></tr>
<tr >
<td><input type="checkbox" name="additional[]" value="STAIN TREATMENT"/>STAIN TREATMENT</td>
<td><input type="checkbox" name="additional[]" value="WATER/FLOOD SERVICES" />WATER/FLOOD SERVICES</td>
</tr>
<tr >
<td><input type="checkbox" name="additional[]" value="CARPET PROTECTION"/>CARPET PROTECTION</td>
<td><input type="checkbox" name="additional[]" value="ODOUR REMOVAL"/>ODOUR REMOVAL</td>
</tr>
<tr >
<td><input type="checkbox" name="additional[]" value="UPHOLSTERY PROTECTION"/>UPHOLSTERY PROTECTION</td>
<td><input type="checkbox" name="additional[]" value="PET STAINS/SMELL"/>PET STAINS/SMELL</td>
</tr>
<tr ><td colspan="3" bgcolor="yellow">Best Contact method</td></tr>
<tr>
<td><input type="checkbox" name="bestcontact[]" value="PHONE"/>PHONE</td>
<td><input type="checkbox" name="bestcontact[]" value="MOBILE"/>MOBILE</td>
<td><input type="checkbox" name="bestcontact[]" value="EMAIL"/>EMAIL</td>
</tr>
<tr><td colspan="3" bgcolor="yellow">Comments / Questions</td></tr>
<tr><td><input type="text" height="5" width="80" id="comments" name="Comments" value="comments"></td></tr>
<tr><td><input type="submit" value="Submit" /></td></tr>
</table>
<img src="Tick-red.png" height="25" width="25" /> The fields marked with (<img src="Tick-red.png" height="25" width="25" />) are mandatory fields
</form>
</body>
</html>
My Email form goes into spamI have designed a javascript which sends email.. But the mail ends up
Page 1 of 1
2 Replies - 586 Views - Last Post: 15 September 2009 - 06:47 AM
#1
My Email form goes into spam
Posted 14 September 2009 - 05:40 PM
Replies To: My Email form goes into spam
#2
Re: My Email form goes into spam
Posted 14 September 2009 - 11:49 PM
Mail sent this way will always end up in spam. You need a commercial mail product to send mail to residential emails.
In the future, please put your question in the body of the post, not the description. Thanks!
In the future, please put your question in the body of the post, not the description. Thanks!
#3
Re: My Email form goes into spam
Posted 15 September 2009 - 06:47 AM
Correct me if I'm wrong... but you have Javascript validating the input to your form, but PHP is actually sending the email. Right?
Email send like this will not *always* end up in spam, but it is generally more likely. The problem is that emails sent from forms on a website get abused by spam bots, so if you're not sending mail through a secure client your emails aren't trusted.
In many cases, you need to abide by the rule where the "from address" uses the same domain as your website. There's also many other issues involving the content of your email, the IP address from which mail is being sent, etc. You'd be better off asking questions about the whole process in an email marking-specific forum.
Email send like this will not *always* end up in spam, but it is generally more likely. The problem is that emails sent from forms on a website get abused by spam bots, so if you're not sending mail through a secure client your emails aren't trusted.
In many cases, you need to abide by the rule where the "from address" uses the same domain as your website. There's also many other issues involving the content of your email, the IP address from which mail is being sent, etc. You'd be better off asking questions about the whole process in an email marking-specific forum.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|