Problems, need help? Have a tip or advice? Post it here.
13 posts Page 2 of 2
@olliwalli, any errors you see being reported in the server log?
@KK: Thanks, I found the error: emailex.php produces additional newlines in the $header. So it was not accepted by the php mail function. I corrected it by replacing every occurrence of "\r\n\r\n" with "\r\n". E.g.:
Old:
Code: Select all
$header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n\r\n";

New:
Code: Select all
$header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n";


And also replacing
Code: Select all
$header .= $content."\r\n\r\n";

with
Code: Select all
$header .= $content."";

Then it worked.
Thank you very much for sharing the solution @olliwalli :)
13 posts Page 2 of 2
cron