$body .= $passedBody . "\r\n\r\n";
fputs ($fp, $body);
- $attachmentlength = attachFiles($fp);
+ $attachmentlength = attachFiles($fp, $session);
if (!isset($postbody)) $postbody = "";
$postbody .= "\r\n--".mimeBoundary()."--\r\n\r\n";
$fp = fopen($full_tmpDraftFile, 'w');
$headerlength = write822HeaderForDraft
- ($fp, $t, $c, $b, $subject, $more_headers, FALSE, $session);
- $bodylength = writeBodyForDraft ($fp, $body, FALSE, $session);
+ ($fp, $t, $c, $b, $subject, $more_headers, $session);
+ $bodylength = writeBodyForDraft ($fp, $body, $session);
fclose($fp);
$length = ($headerlength + $bodylength);
if (sqimap_mailbox_exists ($imap_stream, $draft_folder)) {
sqimap_append ($imap_stream, $draft_folder, $length);
write822HeaderForDraft
- ($imap_stream, $t, $c, $b, $subject, $more_headers, TRUE, $session);
- writeBodyForDraft ($imap_stream, $body, TRUE, $session);
+ ($imap_stream, $t, $c, $b, $subject, $more_headers, $session);
+ writeBodyForDraft ($imap_stream, $body, $session);
sqimap_append_done ($imap_stream);
}
sqimap_logout($imap_stream);
}
return $length;
}
-?>
+?>
\ No newline at end of file