RE: [PHP-DB] From address in mail() header not working - ideas?
| From: | joakim dot andersson at cybercom dot se | Date: | Fri, 25 Oct 2002 07:20:40 +0000 |
| Subject: | RE: [PHP-DB] From address in mail() header not working - ideas? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22680@lists.php.net to get a copy of this message | ||
> Hi Guys,
>
> I did try that but I will try it again.
>
> Also, I have echo'd the data and it does appear as I expect.
>
> Any other thoughts while I try this?
Don't know if this has anything to do with your problem, but
> $headers = "Return-Path: <$support_email>\r\n";
should be
> $headers .= "Return-Path: <$support_email>\r\n";
I'm also courious if this is correct:
> $headers .= "Content-disposition: attachment;
filename=\"$attach_name\"\n\r\n";
Look at the end and you see \n\r\n. Shouldn't it be just \r\n?
And as others already have suggested, move the From-part up a bit...
Also you should try to echo $headers and see if it is what you expect.
Regards
Joakim