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



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:
>
> 
>$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 = '
> 
> 
> 
> Logos Unlimited | Contact
> 
>