|
|
 |
Re: FN-FORUM: PHP mail
date posted 8th January 2007 14:31
Dai Williams wrote:
> [EMAIL REMOVED] wrote:
>
>> Hi
>>
>> I've got a site that was sending out emails fine till a
>> couple of days ago. It is now sending out emails with ...
>> (unknown sender). I don't really know PHP but is there a way
>> to define the sender's name. I have
>>
>> $headers .= "From: ".$email."\n";
>>
>> in the script to define the fom email,but nothing for the from name.
>>
>> TIA
>> Paul
>>
>
>
> You should be able to use $email in the format "friendly name " but I
> am not sure that is the issue you are describing. You could try setting the
> reply-to header as well, but it may be that the host has changed something
> in their settings to override these in which case this may not help either.
>
>
And for goodness sake make sure that $email is being filtered for
newlines or, if I recall correctly, your page could become an open spam
relay...
-ben
|
 |
|