Hello, John.
Just use such code:
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$item[file_name]\"");
header("Content-length: ".strlen($item[file_content]));
echo $item[file_content]
This should work...
--
Mike Tsapenk
"Oliver Witt" <[EMAIL PROTECTED]> ???/ ?
?: news:[EMAIL PROTECTED]...
> Hi,
> Can you attach files to emails and send them through a php script? If
> so, how?
> Kind regards,
> Oliver
>
You can use this function. It can attach just one file.
$mode = message type: pla
2 matches
Mail list logo