For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2007 > [PHP-DB] Form mail() problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [PHP-DB] Form mail() problem
Tim Daff

2007-12-10, 4:00 am

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 .

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@lu.com.au 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['customde
tails'];
$embroidery=$HTTP_POST_VARS['embroidery'
];

// multiple recipients
$to .= 'paul@lu.com.au';

// 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@lu.com.au' . "\r\n";
$headers .= 'From: noreply@logosunlimited.com.au' . "\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@lu.com.au
">info@lu.com.au</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@lu.com.au">sales@lu.com.au<br />
</a></p> </td>
</tr>
</table>
</body>
</html>


Gary Wardell

2007-12-10, 4:00 am

Hi,

This is an SMTP error, not a PHP error. Since you imply the PHP code hasn't changed then something else must have changed.

First verify that the to address, paul@lu.com.aum is still good buy sending and e-mail to it.

If that checks out OK, than check with the mail server administrator. He may have tightened the SPAM controls by requiring SMTP
clients, like PHP, to authenticate before sending mail that relays. Or perhaps the authentication credentials in place may have
changed. Also, some mail server will allow relaying based on IP address. If the mail server does that perhaps the IP address of
the web server has changed. Either way, whatever authentication is used may need to be looked at and corrected.

I can't think of anything else that might be the problem.

Gary


> -----Original Message-----
> From: Tim Daff [mailto:timdaff@gmail.com]
> Sent: Mon, December 10, 2007 1:05 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Form mail() problem
>
>
> 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 .
>
> 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@lu.com.au 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['customde
tails'];
> $embroidery=$HTTP_POST_VARS['embroidery'
];
>
> // multiple recipients
> $to .= 'paul@lu.com.au';
>
> // 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/h
> eader_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@lu.com.au' . "\r\n";
> $headers .= 'From: noreply@logosunlimited.com.au' . "\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@lu.com.au
> ">info@lu.com.au</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@lu.com.au">sales@lu.com.au<br />
> </a></p> </td>
> </tr>
> </table>
> </body>
> </html>
>
>

Chris

2007-12-10, 4:00 am

Tim Daff wrote:
> 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 .


Tell him to chill out ;)

> Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable
> to relay for paul@lu.com.au in
> C:\Domains\logosunlimited.com.au\wwwroot\contact\processquote3.php on
> line 284


logosunlimited.com.au probably stopped their server from being an
open-relay.

You probably won't be able to send to an email address outside of their
domain name without using smtp authentication.

Check out phpmailer for a really easy way to do it.

--
Postgresql & php tutorials
http://www.designmagick.com/
Daniel Brown

2007-12-10, 6:59 pm

On Dec 10, 2007 1:05 AM, Tim Daff <timdaff@gmail.com> wrote:
[snip!]
> Here is the error code I am getting:
>
> Warning: mail() [function.mail]: SMTP server response: 550 5.7.1
> Unable to relay for paul@lu.com.au in C:\Domains\logosunlimited.com.au
> \wwwroot\contact\processquote3.php on line 284

[snip!]

To me, this says that your code is probably still fine, but that
the server on which the logosunlimited.com.au domain is hosted may not
realize that the domain lu.com.au (presuming the `lu` stands for
`logosunlimited`, and is another of your domain names) is a local
domain, if it is.

I'm not exactly certain how you'd handle that with Exchange
(you're using Windows, so I ignorantly assume you're using Exchange),
but in Linux, using Exim, Qmail, or a similar system, you'd need to
modify /etc/localdomains.

Either way, it looks like it's not a PHP issue, which might get
you off the hook with your boss.... but have your server/network admin
take a look at why lu.com.au isn't on the permissible relay list.

--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
Dee Ayy

2007-12-10, 6:59 pm

Normally I'd say, "If it's been working fine for 3 months; then just
stopped working; don't get at the PHP programmer; check with the
network admin as to what changed."

But it's interesting that your error came from an MS Windows machine,
while you have links at the bottom from an Apple machine. Did someone
move your working code from one machine to another?

> Warning: mail() [function.mail]: SMTP server response: 550 5.7.1
> Unable to relay for paul@lu.com.au in C:\Domains\logosunlimited.com.au
> \wwwroot\contact\processquote3.php on line 284



> <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 />

Tim Daff

2007-12-10, 6:59 pm

I designed the site and did all coding, and uploaded from OS X. But
the mac stops there, our work server is Windows, and the server
hosting our sites is I think Windows.


On 11/12/2007, at 3:34 AM, Dee Ayy wrote:

> Normally I'd say, "If it's been working fine for 3 months; then just
> stopped working; don't get at the PHP programmer; check with the
> network admin as to what changed."
>
> But it's interesting that your error came from an MS Windows machine,
> while you have links at the bottom from an Apple machine. Did someone
> move your working code from one machine to another?
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com