<?php ?>
nie wysyla mi e-maila za zalacznikiem kopia.sql?
opcja bez zalacznika dziala a plik na pewno jest w tym katalogu co skrypt...
prosze o pomoc
<?php ?>
<?php function EmailAttachment($from, $to, $subject, $textbody, &$attachmentdata, $attachmentfilename) { $textheaders = '--'.$boundary."\n"; $textheaders .= 'Content-Type: text/plain; format=flowed; charset="iso-8859-1"'."\n"; $textheaders .= 'Content-Transfer-Encoding: 7bit'."\n\n"; $attachmentheaders = '--'.$boundary."\n"; $attachmentheaders .= 'Content-Type: application/octet-stream; name="'.$attachmentfilename.'"'."\n"; $attachmentheaders .= 'Content-Transfer-Encoding: base64'."\n"; $attachmentheaders .= 'Content-Disposition: attachment; filename="'.$attachmentfilename.'"'."\n\n"; $headers[] = 'From: '.$from; $headers[] = 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'; return mail($to, $subject, $textheaders.ereg_replace("[x80-xFF]", '?', $textbody)."\n\n".$attachmentheaders.wordwrap(base64_encode($attachmentdata), 76, "\n", true)."\n\n".'--'.$boundary."--\n\n", implode("r\n", $headers)); } $newfullfilename = $backupFile.".gz"; ?>
<?php 'Content-Type: application/octet-stream; name="kopia.sql"; \n' . 'Content-Disposition: attachment; filename="kopia.sql"; \n'); ?>
<?php ?>