Re: PHP mail() problem
| From: | David Robley | Date: | Thu, 19 Oct 2000 01:04:50 +0000 |
| Subject: | Re: PHP mail() problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21033@lists.php.net to get a copy of this message | ||
On Wed, 18 Oct 2000, Slaven Vujic wrote:
> Hello,
>
> question:
>
> Why the httpd deamon is in "From" field instead of
> "infopress_mail@sdnet.hr" in received e-mails?
>
> <?
>
> $addr = "infopress@sdnet.hr";
> $body="<br><a href
> =http://www.sdnet.hr/infoinvest/infopress>Infopress
> Online</a>";
> $subject = "Infopress";
> $headers = "From: infopress_mail@sdnet.hr\r\nContent-type: text/html";
>
> mail($addr,$subject,$body,$headers);
>
> echo "<center>Infopress poslan na e-mail adresu
> <b>$addr</b>.</center>";
>
> ?>
Try using just \n instead of \r\n to separate the lines From and
Content-type
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA