leigh_rendle38
New Member
- Messages
- 20
- Reaction score
- 0
- Points
- 0
Am I doing anything wrong please for this to work here ?
I am completely lost with out any one help, i have been told that the free accounts still have the mail function working but I can get mine to work.
Could some one please advise me and point me in the right direction .
Thank you.....
<?php
$to = "admin@leighs.co.cc";
$subject = "Web Contact";
$email = $_REQUEST['Email'] ;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: $email";
$message = $_REQUEST['Enqiury'] ;
$sex = $_REQUEST['Sex'] ;
$firstname = $_REQUEST['Firstname'] ;
$Surname = $_REQUEST['Surname'] ;
$country = $_REQUEST['Country'] ;
$type = $_REQUEST['Type'] ;
$body ="
From:$sex $firstname $Surname \r
Email: $email \r
Country: $country \r
Your Enqiury: $type \r
Message: $message \n
" ;
$sent = mail($to, $subject, $body, $headers) ;
if($sent)
echo '<table width="392" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="229" valign="bottom"><h3>Form submitted successfully</h3></td>
<td width="163"><img src="http://x10hosting.com/forums/Images/forms/accepted.gif" alt="" width="35" height="35" align="top" /></td>
</tr>
<tr>
<td colspan="2"><p>Thank you for contacting leighs Computer Company<br />
I will get back to you as soon as possible can.</p></td>
</tr>
<tr>
<td colspan="2"><p class="prop">
proprietor:</p></td>
</tr>
<tr>
<td colspan="2"><p><strong>
</strong> Mr Leigh Rendle</p></td>
</tr>
</table>';
else
{print "We encountered an error sending your mail"; }
?>
</div>
</div><br class="clearfloat">
</div>
<div id="MC-Bot"></div>
<div id="Footer"><div class="footer-holder">©2009 Leighs Computing Company</div></div>
</div>
</body>
</html>
*********************************************
Thank you
I am completely lost with out any one help, i have been told that the free accounts still have the mail function working but I can get mine to work.
Could some one please advise me and point me in the right direction .
Thank you.....
<?php
$to = "admin@leighs.co.cc";
$subject = "Web Contact";
$email = $_REQUEST['Email'] ;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: $email";
$message = $_REQUEST['Enqiury'] ;
$sex = $_REQUEST['Sex'] ;
$firstname = $_REQUEST['Firstname'] ;
$Surname = $_REQUEST['Surname'] ;
$country = $_REQUEST['Country'] ;
$type = $_REQUEST['Type'] ;
$body ="
From:$sex $firstname $Surname \r
Email: $email \r
Country: $country \r
Your Enqiury: $type \r
Message: $message \n
" ;
$sent = mail($to, $subject, $body, $headers) ;
if($sent)
echo '<table width="392" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="229" valign="bottom"><h3>Form submitted successfully</h3></td>
<td width="163"><img src="http://x10hosting.com/forums/Images/forms/accepted.gif" alt="" width="35" height="35" align="top" /></td>
</tr>
<tr>
<td colspan="2"><p>Thank you for contacting leighs Computer Company<br />
I will get back to you as soon as possible can.</p></td>
</tr>
<tr>
<td colspan="2"><p class="prop">
proprietor:</p></td>
</tr>
<tr>
<td colspan="2"><p><strong>
</strong> Mr Leigh Rendle</p></td>
</tr>
</table>';
else
{print "We encountered an error sending your mail"; }
?>
</div>
</div><br class="clearfloat">
</div>
<div id="MC-Bot"></div>
<div id="Footer"><div class="footer-holder">©2009 Leighs Computing Company</div></div>
</div>
</body>
</html>
*********************************************
Thank you