Posted by Stefan Mueller on 11/24/05 02:56
>> If I use
>> $headers .= "From: user@inter.net\n";
>> instead of
>> $headers .= "From: \"User\" <user@inter.net>\n";
>> is works perfect.
>
> < and > is only used to display < and > on a HTML page and not in
> the
> From: or To: in mail().
>
> so if you want to display the "header" variable and use it in your mail(),
> then you need to use a function like eregi_replace to transform the < and
> > to
> < and > if you want to display the whole string.
Wow, that makes sense.
I don't want to display $headers I just like to send a mail. Therefore I
tried
$headers .= "From: \"User\" <user@inter.net>";
or
$headers .= "From: 'User' <user@inter.net>";
or
$headers .= "From: User <user@inter.net>";
or
$headers .= 'From: "User" <user@inter.net>';
However, no version works.
Does someone see what's still wrong?
Stefan
Navigation:
[Reply to this message]
|