Mail_Mime sending HTML-mail example

From: Date: Fri, 31 May 2002 11:25:18 +0000
Subject: Mail_Mime sending HTML-mail example
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6677@lists.php.net to get a copy of this message
is there a properly working example of how to send a html mail. including pictures which will be attached and sent. and their references within the html file will be converted. does someone have a working example of that? i would be glad to see one. thanks what i am currently doing is:
        $mime = &new Mail_Mime;
        $headers['From'] = $data['from'];
        $headers['Subject'] = $data['subject'];
        $to = 'wk@dvd-kunden.de';#$data['to'];
        $mime->setHTMLBody( 'http://some.com.de/index.php' , true );
        $mime->addHTMLImage('frame.gif');
        $mime->addHTMLImage('pixel.gif');
        $mbody = $mime->get();
        $headers = $mime->headers($headers);
        $mail = Mail::factory('mail');
        $mail->send($to, $headers, $mbody);
or is there any mistake in there? the html mail i am getting has the iamge names replaced in the html file by those "cid:...." thingys but my mail client (kmail) doesnt show the html-mails properly, the images are always "empty" and the attached files still have to old names. any hints/solutions/examples? -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#6677) next »