parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Есть подозрение...

Sumo 03.09.2007 11:00

... что можно обойтись без промежуточного файла msg.tmp.
$sendmail -t <<ENDBLOCK
Date: $msgdate
From: $from
To: $recipient
Subject: $subject [$msgdate]
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="$boundary"
Content-Disposition: inline

--$boundary
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline

Бэкап вашей базы MySQL и файлов, сделанный 
$msgdate

--$boundary
Content-Type: $mimetype;name="$attachment_mysql"
Content-Disposition: attachment; filename="$attachment_mysql"
Content-Transfer-Encoding: base64

`uuencode -m $mysql_backup_filename $attachment_mysql | sed '1d'`

--$boundary
Content-Type: $mimetype;name="$attachment_files"
Content-Disposition: attachment; filename="$attachment_files"
Content-Transfer-Encoding: base64

`uuencode -m $files_backup_filename $attachment_files | sed '1d'`

--$boundary--

ENDBLOCK