RE: From address in mail() header not working - ideas?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux