|
|
 |
RE: FN-FORUM: PHP mail
date posted 8th January 2007 14:04
[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
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.
Also check out the optional fourth parameter to the mail call
http://uk2.php.net/manual/en/function.mail.php
additional_parameters (optional)
which may be necessary in some instances to correctly set the from address
(anything you send in the headers param might be ignored/overridden).
HTH,
Dai
--
TechnologyAngel
http://www.technologyangel.co.uk/
|
 |
|