1

Temat: Wysyłanie e-maili z załącznikami

witam,
od dwóch dni szukam po całym googlu i nie mogę znaleźć odpowiedzi.
muszę wysłać e-mail w formacie html  z załącznikami.
tak wyglada moja funkcja

function sendTemplateMail($data) {
        //$this->Email->_debug = true;
        
        $this->Email->bcc = array("kjghjkg@jkgjkg");
        $this->Email->cc = array("hkjhkj@jkgjkg");
        $this->Email->subject = __("temat",true). " - " .$data['Application']['imie']." ".$data['Application']['nazwisko'];
        $this->Email->replyTo = 'noreply@ghjgl.pl';
        $this->Email->from = 'jhghjg <administrator@hjgjhgl.pl>';
        $this->Email->template = 'test2';
        
        
       $this->Email->sendAs = 'html';
        
$this->Email->attachments = array('http://adres.pl/img/'.$data['Application']['zdjecie1']);

        //Set view variables as normal
        $this->set('someValue', $data);
        //Do not pass any args to send()
        if ( $this->Email->send() ) {
            $this->Session->setFlash('Template email sent');
        } else {
            $this->Session->setFlash('Template email not sent');
        }
        //$this->redirect('/');
        
    } 

mail wysyla bez problemu, ale nie ma w zalaczniku obrazka. korzystam z serwerow home.pl

pozdr.