I am just beginning with php, my first effort was a quote detail form
that collects the user inputted data and makes and email out of it,
which sends to my boss. It worked fine for about 3 months now all of
a sudden it has stopped, and made my boss angry.
Any help I could get with this would be greatly appreciated.
Here is the error code I am getting:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1
Unable to relay for paul@xxxxxxxxx in C:\Domains\logosunlimited.com.au
\wwwroot\contact\processquote3.php on line 284
Here is the .php code:
<?php
$name=$HTTP_POST_VARS['name'];
$email=$HTTP_POST_VARS['email'];
$phone=$HTTP_POST_VARS['phone'];
$catalog=$HTTP_POST_VARS['catalog'];
$notes=$HTTP_POST_VARS['notes'];
$code=$HTTP_POST_VARS['code'];
$qty=$HTTP_POST_VARS['qty'];
$company=$HTTP_POST_VARS['company'];
$postal=$HTTP_POST_VARS['postal'];
$screen=$HTTP_POST_VARS['screen'];
$customdetails=$HTTP_POST_VARS['customdetails'];
$embroidery=$HTTP_POST_VARS['embroidery'];
// multiple recipients
$to .= 'paul@xxxxxxxxx';
// subject
$subject = 'Online Quote';
// message
$message = '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Logos Unlimited | Contact</title>
<style type="text/css">
<!--
#tableLayout #tdMain p {
}
#tdFooter {
text-align: center;
font-size: 10px;
vertical-align: middle;
background-color: #FFFFFF;
}
.image {
margin-bottom: 0px;
padding-bottom: 5px;
padding-top: 5px;
}
#tdBottom {
text-align: center;
font-size: 10px;
vertical-align: middle;
}
#tdBottom img {
text-align: center;
font-size: 10px;
vertical-align: middle;
padding-top: 2px;
margin-right: 5px;
margin-left: 5px;
width: 168px;
}
.suppliers {
text-align: left;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
h1 {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
border-left-width: 7px;
border-left-style: solid;
border-left-color: #83ABD2;
text-indent: 5px;
font-weight: normal;
margin-left: 20px;
padding-bottom: 0px;
}
#tdMain p {
text-align: left;
padding-left: 30px;
}
#tdSpecials {
}
#tdSpecials a {
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#tdSpecials img {
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
padding-top: 30px;
}
#tdTest p {
text-align: left;
padding-left: 30px;
}
#tdMain {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
padding-top: 20px;
padding-right: 25px;
}
#tdTest {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
padding-top: 20px;
padding-right: 25px;
border-right-style: none;
border-left-style: none;
border-top-style: none;
border-bottom-style: none;
}
#tdNavbar {
text-align: left;
text-indent: 60px;
vertical-align: middle;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
padding-top: 0px;
}
#tableLayout {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
border: thin solid #848484;
padding-top: 3px;
background-image: url(http://www.logosunlimited.com.au/images/
chair.gif);
}
#tableHome {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
padding-top: 3px;
background-image: url(../newstyletest/images/chair.gif);
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-position: bottom;
}
#tableEmb {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
padding-top: 3px;
background-image: url(../embroidery/images/swf.gif);
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#tableLayout a {
}
#tdNavbar a {
margin-right: 7px;
margin-left: 7px;
padding-right: 7px;
padding-left: 7px;
text-decoration: none;
color: #83ABD2;
}
#tableSignage {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
padding-top: 3px;
background-image: url(../signage/images/roland.gif);
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#tdNavbar a:hover {
color: #000000;
}
#tdHeader {
}
#tdNavbar .home {
color: #000000;
}
#tdNavbar .cloth {
color: #000000;
}
#tdNavbar .emb {
color: #000000;
}
#tdNavbar .print {
color: #000000;
}
#tdNavbar .promo {
color: #000000;
}
#tdNavbar .sign {
color: #000000;
}
#tdNavbar .contact {
color: #000000;
}
.symbol {
padding-top: 25px;
}
#tableLayout a {
color: #336699;
text-decoration: none;
}
#tableFooter img {
margin: 0px;
padding: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#tdTest img {
padding-bottom: 10px;
}
#tableHome #imgLeft {
padding: 0px;
vertical-align: middle;
}
#tableHome #special {
padding-top: 35px;
}
#tableHome .imgCentre {
padding-right: 15px;
padding-left: 15px;
}
-->
</style>
</head>
<body>
<table width="800" border="0" align="center" cellpadding="0"
cellspacing="0" id="tableLayout">
<!--DWLayoutTable-->
<tr>
<td width="800" height="108" valign="top" id="tdHeader"><img src="http://i187.photobucket.com/albums/x53/pblkdistribution/header_test.gif
" width="800" height="108" /></td>
</tr>
<tr>
<td height="295" valign="top" id="tdMain">
<h1>New Quote</h1>
<p><strong>Customer Details</strong></p>
<p>Name: '.$name.'<br>
Company: '.$company.'<br />
Phone: '.$phone.'<br />
eMail: '.$email.'<br>
Postal Address:<br>
<br>
'.$postal.'</p>
<p><strong>Quote Details</strong></p>
<p>Catalog: '.$catalog.'<br />
Product Code: '.$code.'<br />
Quantity: '.$qty.'<br />
</p>
<p>Printing:<br>
'.$screen.'<br>
'.$customdetails.'</p>
<p>Embroidery:<br>
'.$embroidery.'</p>
<p>Notes:</p>
<p>'.$notes.'<br />
<br />
<br />
</p></td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table>
</body>
</html>
';
// 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";
// Additional headers
$headers .= 'To: paul@xxxxxxxxx' . "\r\n";
$headers .= 'From: noreply@xxxxxxxxxxxxxxxxxxxxx' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Logos Unlimited | Contact</title>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</head>
<body>
<table width="800" border="0" align="center" cellpadding="0"
cellspacing="0" id="tableLayout">
<!--DWLayoutTable-->
<tr>
<td width="800" height="108" valign="top" id="tdHeader"><img
src="../images/header_test.gif" width="800" height="108" /></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="37" valign="top" id="tdNavbar"><a href="../
index.html">home</a> <a href="../clothing/clothing.html">clothing</a>
<a href="../embroidery/embroidery.html">embroidery</a> <a href="../
printing/printing.html">printing</a> <a href="../
promotional.html">promotional</a> <a href="../signage/
signage.html">signage</a> contact</td>
</tr>
<tr>
<td height="451" valign="top" id="tdMain">
<h1>Quote Request Sent</h1>
<p>Thank you, your quote request has been sent. We will get back
to you with pricing asap.<br />
If you have any other enquirys please email us here: <a href="mailto:info@xxxxxxxxx
">info@xxxxxxxxx</a></p></td>
</tr>
<tr>
<td height="60" valign="top" id="tdFooter"><p><img src="../images/
delivery.gif" width="180" height="24" border="0" /><br />
<a href="file:///Macintosh HD/Users/DF/Sites/Logos Unlimited
Website/Logos Root Folder/wwwroot/index.html">home</a> | <a href="file:///Macintosh
HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
clothing/clothing.html">clothing</a> | <a href="file:///Macintosh HD/
Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
embroidery/embroidery.html">embroidery</a> | <a href="file:///
Macintosh HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/
wwwroot/printing/printing.html">printing</a> | <a href="file:///Macintosh
HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
promotional.html">promotional</a> | <a href="file:///Macintosh HD/
Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
signage/signage.html">signage</a> | <a href="file:///Macintosh HD/
Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
contactus.html">contact</a><br />
Logos Unlimited, 17-19 The Concourse, Cowes, 3922<br />
Phone: <span class="bold">03 5952 5477</span> Fax: <span
class="bold">03 5952 1670</span> email: <a
href="mailto:sales@xxxxxxxxx">sales@xxxxxxxxx<br />
</a></p> </td>
</tr>
</table>
</body>
</html>