Form mail() problem
am 10.12.2007 07:05:28 von Tim Daff--Apple-Mail-12--83803023
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
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@lu.com.au in C:\Domains\logosunlimited.com.au
\wwwroot\contact\processquote3.php on line 284
Here is the .php code:
$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@lu.com.au';
// subject
$subject = 'Online Quote';
// message
$message = '
New Quote
Customer Details
Name: '.$name.'
Company: '.$company.'
Phone: '.$phone.'
eMail: '.$email.'
Postal Address:
'.$postal.'
Quote Details
Catalog: '.$catalog.'
Product Code: '.$code.'
Quantity: '.$qty.'
Printing:
'.$screen.'
'.$customdetails.'
Embroidery:
'.$embroidery.'
Notes:
'.$notes.'
';
// 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);
?>
printing promotional signage contact
Quote Request Sent
Thank you, your quote request has been sent. We will get back
to you with pricing asap.
If you have any other enquirys please email us here: info@lu.com.au
home | clothing | embroidery | printing | promotional | signage | contact
Logos Unlimited, 17-19 The Concourse, Cowes, 3922
Phone: 03 5952 5477 Fax:
class="bold">03 5952 1670 email:
href="mailto:sales@lu.com.au">sales@lu.com.au
--Apple-Mail-12--83803023--