My code is this ...

<?php

// MAIL HEADERS.

             $headers = "X-Priority: 1\n";
             $headers .= "Return-path: <[EMAIL PROTECTED]>\n";
             $headers .= "From: \"Philip Newman\"  <[EMAIL PROTECTED]>\n";
             $headers .= "Reply-To: \"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>\n";
 
             $msg = "Dear $mUserName,\n\n";
             $msg .= "You have requested a user account on  Untouched. To activate 
this account\n";
             $msg .= "click on the link below.  Please save this email so you dont 
forget your user\n";
             $msg .= "name and password.\n\n"; 
             $msg .= "$siteDomain/b.php?ID=$timestamp.\n\n";
             $msg .= "If you have received this email in error please disregard it and 
delete it...\n\n";
             $msg .= "Username: $mUserName.\n";
             $msg .= "Password: $mPassword\n\n";
             $msg .= "Thanks.\n";
             $msg .= "Philip Newman\n";

                      mail("$mEmail", "The Crush Me Account Info.", $msg, $headers);


?>
             
Warning: mail() [function.mail]: SMTP server response: 550 , Sender unknown in 
D:\Hosting\Undercover\includes\inc_signup.php on line 138


Thats my error ... will the server only relay the message to A local account?


----- Original Message ----- 
From: "Catalin Trifu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 10:08 AM
Subject: [PHP] Re: [Newman] When i send an email it ...


>         Hi,
> 
>     This a SMTP server error.
>     It looks like you did not add the header
>     FROM: "yourname" [EMAIL PROTECTED]; looks like u'r SMTP
> does not allow for messages without FROM header
>     as the PHP function:
>     mail ( string to, string subject, string message [, string
> additional_headers [, string additional_parameters]])
>     shows, you can add extra headers to the mail message, so this
> is what you need to do.
> 
> Cheers,
> Catalin
> 
> "Jason Marks" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> When i send an email i get the following error.
> 
> 
>  Warning: mail() [function.mail]: SMTP server response: 550 , Sender unknown
> in D:\Hosting\Crushme\includes\inc_register.php on line 138
> 
> Is this a server or a PHP error?
> 
> / Philip
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

Reply via email to