Re: / [Newman] When i send an email it ...
| From: | Philip J. Newman | Date: | Mon, 16 Jun 2003 02:52:35 +0000 |
| Subject: | Re: / [Newman] When i send an email it ... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151614@lists.php.net to get a copy of this message | ||
My code is this ...
<?php
// MAIL HEADERS.
$headers = "X-Priority: 1\n";
$headers .= "Return-path: <newmanpj@philipnz.com>\n";
$headers .= "From: \"Philip Newman\"
<newmanpj@philipnz.com>\n";
$headers .= "Reply-To: \"newmanpj@philipnz.com\"
<newmanpj@philipnz.com>\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" <catalin@isp-software.de>
To: <php-general@lists.php.net>
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" yourname@host.com; 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" <me@philipsdomain.com> wrote in message
> news:003001c3336b$4913fdb0$0401a8c0@philip...
> 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
>
>