в приложении / код / ядро / маг / ядро / модель / электронная почта / Template.php в методе отправки найти
$mail->setSubject('=?utf-8?B?' . base64_encode($this->getProcessedTemplateSubject($variables)) . '?=');
$mail->setFrom($this->getSenderEmail(), $this->getSenderName());
и заменить на
if (isset($variables['attachment'])){
$attfile = file_get_contents($variables['attachment']);
$attfile = fopen($variables['attachment'],'rb');
$att = $mail->createAttachment($attfile);
//$att->type = 'plain/text';
$att->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$att->filename = $variables['attname'];
}
$mail->setSubject('=?utf-8?B?' . base64_encode($this->getProcessedTemplateSubject($variables)) . '?=');
$mail->setFrom($this->getSenderEmail(), $this->getSenderName());