summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index e45662de5..b25a7dee6 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -596,7 +596,7 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml)
$tmp_path = tempnam($temp_dir, 'rcmAttmnt');
if ($fp = fopen($tmp_path, 'w'))
{
- fwrite($fp, $message->get_part_content($pid));
+ $message->get_part_content($pid, $fp);
fclose($fp);
$_SESSION['compose']['attachments'][] = array(