Re: [PHP-DB] Form mail() problem

2007-12-10 Thread Daniel Brown
On Dec 10, 2007 1:05 AM, Tim Daff [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Form mail() problem

2007-12-10 Thread Dee Ayy
Normally I'd say, If it's been working fine for 3 months; then just
stopped working; don't get angry 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 [EMAIL PROTECTED] 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.htmlhome/a | a 
 href=file:///Macintosh
   HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
 clothing/clothing.htmlclothing/a | a href=file:///Macintosh HD/
 Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
 embroidery/embroidery.htmlembroidery/a | a href=file:///
 Macintosh HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/
 wwwroot/printing/printing.htmlprinting/a | a href=file:///Macintosh
   HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
 promotional.htmlpromotional/a | a href=file:///Macintosh HD/
 Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
 signage/signage.htmlsignage/a | a href=file:///Macintosh HD/
 Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
 contactus.htmlcontact/abr /

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Form mail() problem

2007-12-10 Thread Tim Daff
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 angry 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 [EMAIL PROTECTED] 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.htmlhome/a | a 
href=file:///Macintosh
 HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
clothing/clothing.htmlclothing/a | a href=file:///Macintosh HD/
Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
embroidery/embroidery.htmlembroidery/a | a href=file:///
Macintosh HD/Users/DF/Sites/Logos Unlimited Website/Logos Root  
Folder/

wwwroot/printing/printing.htmlprinting/a | a href=file:///Macintosh
 HD/Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
promotional.htmlpromotional/a | a href=file:///Macintosh HD/
Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
signage/signage.htmlsignage/a | a href=file:///Macintosh HD/
Users/DF/Sites/Logos Unlimited Website/Logos Root Folder/wwwroot/
contactus.htmlcontact/abr /


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Form mail() problem

2007-12-09 Thread Gary Wardell
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, [EMAIL PROTECTED] 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:[EMAIL PROTECTED]
 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 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 [EMAIL PROTECTED] 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 .= '[EMAIL PROTECTED]';

 // subject
 $subject = 'Online Quote';

 // message
 $message = '
 html
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
 titleLogos Unlimited | Contact/title
 style type=text/css
 !--
 #tableLayout #tdMain p {
 }
 #tdFooter {
   text-align: center;
   font-size: 10px;
   vertical-align: middle;
   background-color: #FF;
 }
 .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: #00;
   padding-top: 20px;
   padding-right: 25px;
 }
 #tdTest {
   font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #00;
   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: 

Re: [PHP-DB] Form mail() problem

2007-12-09 Thread Chris

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 angry.


Tell him to chill out ;)

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable 
to relay for [EMAIL PROTECTED] 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/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php